Leaked source code of windows server 2003
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.

56 lines
1.2 KiB

  1. // Copyright (c) 1997-1999 Microsoft Corporation
  2. // RootSecPage.cpp : implementation file
  3. //
  4. #include "precomp.h"
  5. #include "ErrorSecPage.h"
  6. #include "DataSrc.h"
  7. #include "resource.h"
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CErrorSecurityPage dialog
  15. CErrorSecurityPage::CErrorSecurityPage(UINT msg) :
  16. CUIHelpers(NULL, NULL, false),
  17. m_msg(msg)
  18. {
  19. }
  20. //---------------------------------------------------------------------------
  21. void CErrorSecurityPage::InitDlg(HWND hDlg)
  22. {
  23. HWND hwnd = GetDlgItem(hDlg, IDC_NO_SECURITY);
  24. CHString1 msgStr;
  25. if(msgStr.LoadString(m_msg))
  26. {
  27. ::SetWindowText(hwnd, (LPCTSTR)msgStr);
  28. }
  29. else
  30. {
  31. ::SetWindowText(hwnd, _T("Cannot display the correct problem due to an internal error."));
  32. }
  33. }
  34. //------------------------------------------------------------------------
  35. BOOL CErrorSecurityPage::DlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
  36. {
  37. switch(uMsg)
  38. {
  39. case WM_INITDIALOG:
  40. InitDlg(hDlg);
  41. break;
  42. default:
  43. return FALSE;
  44. }
  45. return TRUE;
  46. }