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.

58 lines
1.4 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_CLIENT_DEBUG, BN_CLICKED, OnChangeControl)
  28. COMMAND_HANDLER_EX(IDC_DEFAULT_ERROR, EN_CHANGE, OnChangeControl)
  29. CHAIN_MSG_MAP(baseClass)
  30. END_MSG_MAP()
  31. BEGIN_DDX_MAP(CAspDebugPage)
  32. DDX_CHECK(IDC_SERVER_DEBUG, m_pData->m_ServerDebug)
  33. DDX_CHECK(IDC_CLIENT_DEBUG, m_pData->m_ClientDebug)
  34. DDX_RADIO(IDC_SEND_DETAILED_ERROR, m_ErrorIdx)
  35. DDX_TEXT(IDC_DEFAULT_ERROR, m_pData->m_DefaultError)
  36. DDX_CONTROL(IDC_DEFAULT_ERROR, m_DefaultErrCtrl)
  37. END_DDX_MAP()
  38. LRESULT OnInitDialog(HWND hDlg, LPARAM lParam);
  39. void OnChangeError(UINT nCode, UINT nID, HWND hWnd);
  40. void OnChangeControl(UINT nCode, UINT nID, HWND hWnd)
  41. {
  42. SET_MODIFIED(TRUE);
  43. }
  44. BOOL OnKillActive();
  45. protected:
  46. CAppData * m_pData;
  47. int m_ErrorIdx;
  48. CEditExch m_DefaultErrCtrl;
  49. };
  50. #endif //_ASP_DEBUG_H