Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.8 KiB

  1. //
  2. //
  3. //
  4. #ifndef _ASP_MAIN_H
  5. #define _ASP_MAIN_H
  6. #include "resource.h"
  7. #include "ExchControls.h"
  8. #include "PropSheet.h"
  9. class CAspMainPage :
  10. public WTL::CPropertyPageImpl<CAspMainPage>,
  11. public WTL::CWinDataExchange<CAspMainPage>
  12. {
  13. typedef CPropertyPageImpl<CAspMainPage> baseClass;
  14. public:
  15. CAspMainPage(CAppData * pData)
  16. {
  17. m_pData = pData;
  18. }
  19. ~CAspMainPage()
  20. {
  21. }
  22. enum {IDD = IDD_ASPMAIN};
  23. BEGIN_MSG_MAP_EX(CAspMainPage)
  24. MSG_WM_INITDIALOG(OnInitDialog)
  25. COMMAND_HANDLER_EX(IDC_ENABLE_SESSION, BN_CLICKED, OnEnableSession)
  26. COMMAND_HANDLER_EX(IDC_ENABLE_BUFFERING, BN_CLICKED, OnChangeControl)
  27. COMMAND_HANDLER_EX(IDC_ENABLE_PARENTS, BN_CLICKED, OnChangeControl)
  28. COMMAND_HANDLER_EX(IDC_SESSION_TIMEOUT, EN_CHANGE, OnChangeControl)
  29. COMMAND_HANDLER_EX(IDC_SCRIPT_TIMEOUT, EN_CHANGE, OnChangeControl)
  30. COMMAND_HANDLER_EX(IDC_LANGUAGES, EN_CHANGE, OnChangeControl)
  31. CHAIN_MSG_MAP(baseClass)
  32. END_MSG_MAP()
  33. BEGIN_DDX_MAP(CAspMainPage)
  34. DDX_CHECK(IDC_ENABLE_SESSION, m_pData->m_EnableSession)
  35. DDX_CHECK(IDC_ENABLE_BUFFERING, m_pData->m_EnableBuffering)
  36. DDX_CHECK(IDC_ENABLE_PARENTS, m_pData->m_EnableParents)
  37. DDX_INT(IDC_SESSION_TIMEOUT, m_pData->m_SessionTimeout)
  38. DDX_TEXT(IDC_LANGUAGES, m_pData->m_Languages)
  39. DDX_INT(IDC_SCRIPT_TIMEOUT, m_pData->m_ScriptTimeout)
  40. DDX_CONTROL(IDC_LANGUAGES, m_LanguagesCtrl)
  41. DDX_CONTROL(IDC_TIMEOUT_SPIN, m_TimeoutSpin)
  42. DDX_CONTROL(IDC_ASPTIMEOUT_SPIN, m_AspTimeoutSpin)
  43. END_DDX_MAP()
  44. LRESULT OnInitDialog(HWND hDlg, LPARAM lParam);
  45. void OnEnableSession(UINT nCode, UINT nID, HWND hWnd);
  46. void OnChangeControl(UINT nCode, UINT nID, HWND hWnd)
  47. {
  48. SET_MODIFIED(TRUE);
  49. }
  50. BOOL OnKillActive();
  51. protected:
  52. CAppData * m_pData;
  53. CEditExch m_LanguagesCtrl;
  54. CUpDownCtrlExch m_TimeoutSpin;
  55. CUpDownCtrlExch m_AspTimeoutSpin;
  56. };
  57. #endif //_ASP_MAIN_H