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.

60 lines
1.5 KiB

  1. //
  2. //
  3. //
  4. #ifndef _ASP_DEBUG_H
  5. #define _ASP_DEBUG_H
  6. #include "resource.h"
  7. #include "ExchControls.h"
  8. #include "PropSheet.h"
  9. class CAspDebugPage :
  10. public WTL::CPropertyPageImpl<CAspDebugPage>,
  11. public WTL::CWinDataExchange<CAspDebugPage>
  12. {
  13. typedef WTL::CPropertyPageImpl<CAspDebugPage> baseClass;
  14. public:
  15. CAspDebugPage(CAppData * pData)
  16. {
  17. m_pData = pData;
  18. }
  19. ~CAspDebugPage()
  20. {
  21. }
  22. enum {IDD = IDD_ASPDEBUG};
  23. BEGIN_MSG_MAP_EX(CAspDebugPage)
  24. MSG_WM_INITDIALOG(OnInitDialog)
  25. COMMAND_HANDLER_EX(IDC_SEND_DEF_ERROR, BN_CLICKED, OnChangeError)
  26. COMMAND_HANDLER_EX(IDC_SEND_DETAILED_ERROR, BN_CLICKED, OnChangeError)
  27. COMMAND_HANDLER_EX(IDC_SERVER_DEBUG, BN_CLICKED, OnChangeControl)
  28. COMMAND_HANDLER_EX(IDC_CLIENT_DEBUG, BN_CLICKED, OnChangeControl)
  29. COMMAND_HANDLER_EX(IDC_DEFAULT_ERROR, EN_CHANGE, OnChangeControl)
  30. CHAIN_MSG_MAP(baseClass)
  31. END_MSG_MAP()
  32. BEGIN_DDX_MAP(CAspDebugPage)
  33. DDX_CHECK(IDC_SERVER_DEBUG, m_pData->m_ServerDebug)
  34. DDX_CHECK(IDC_CLIENT_DEBUG, m_pData->m_ClientDebug)
  35. DDX_RADIO(IDC_SEND_DETAILED_ERROR, m_ErrorIdx)
  36. DDX_TEXT(IDC_DEFAULT_ERROR, m_pData->m_DefaultError)
  37. DDX_CONTROL(IDC_DEFAULT_ERROR, m_DefaultErrCtrl)
  38. END_DDX_MAP()
  39. LRESULT OnInitDialog(HWND hDlg, LPARAM lParam);
  40. void OnChangeError(UINT nCode, UINT nID, HWND hWnd);
  41. void OnHelp();
  42. void OnChangeControl(UINT nCode, UINT nID, HWND hWnd)
  43. {
  44. SET_MODIFIED(TRUE);
  45. }
  46. BOOL OnKillActive();
  47. protected:
  48. CAppData * m_pData;
  49. int m_ErrorIdx;
  50. CEditExch m_DefaultErrCtrl;
  51. };
  52. #endif //_ASP_DEBUG_H