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.

40 lines
749 B

  1. //
  2. //
  3. //
  4. #include "stdafx.h"
  5. #include "AspDebug.h"
  6. LRESULT
  7. CAspDebugPage::OnInitDialog(HWND hDlg, LPARAM lParam)
  8. {
  9. DoDataExchange();
  10. m_ErrorIdx = m_pData->m_SendAspError ? 0 : 1;
  11. m_DefaultErrCtrl.EnableWindow(!m_pData->m_SendAspError);
  12. DoDataExchange(FALSE);
  13. return FALSE;
  14. }
  15. void
  16. CAspDebugPage::OnChangeError(UINT nCode, UINT nID, HWND hWnd)
  17. {
  18. DoDataExchange(TRUE);
  19. m_pData->m_SendAspError = (m_ErrorIdx == 0);
  20. m_DefaultErrCtrl.EnableWindow(!m_pData->m_SendAspError);
  21. SET_MODIFIED(TRUE);
  22. }
  23. BOOL
  24. CAspDebugPage::OnKillActive()
  25. {
  26. DoDataExchange(TRUE);
  27. return SUCCEEDED(m_pData->Save());
  28. }
  29. void
  30. CAspDebugPage::OnHelp()
  31. {
  32. WinHelp(m_pData->m_HelpPath, HELP_CONTEXT, CAspDebugPage::IDD + WINHELP_NUMBER_BASE);
  33. }