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.

65 lines
1.6 KiB

  1. // PageIni.h : Declaration of the CPageIni
  2. #ifndef __PAGEREGISTRY_H_
  3. #define __PAGEREGISTRY_H_
  4. #include "resource.h" // main symbols
  5. #include <atlhost.h>
  6. #include "msconfigstate.h"
  7. /////////////////////////////////////////////////////////////////////////////
  8. // CPageIni
  9. class CPageRegistry :
  10. public CAxDialogImpl<CPageRegistry>
  11. {
  12. public:
  13. CPageRegistry()
  14. {
  15. }
  16. ~CPageRegistry()
  17. {
  18. }
  19. enum { IDD = IDD_PAGEREGISTRY };
  20. BEGIN_MSG_MAP(CPageIni)
  21. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  22. END_MSG_MAP()
  23. // Handler prototypes:
  24. // LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  25. // LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  26. // LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  27. private:
  28. CString m_strCaption; // contains the localized name of this page
  29. public:
  30. //-------------------------------------------------------------------------
  31. // Functions used by the parent dialog.
  32. //-------------------------------------------------------------------------
  33. BOOL IsValid(CMSConfigState * state)
  34. {
  35. return TRUE;
  36. }
  37. LPCTSTR GetCaption()
  38. {
  39. if (m_strCaption.IsEmpty())
  40. {
  41. ::AfxSetResourceHandle(_Module.GetResourceInstance());
  42. m_strCaption.LoadString(IDS_REGISTRY_CAPTION);
  43. }
  44. return m_strCaption;
  45. }
  46. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  47. {
  48. ::EnableWindow(GetDlgItem(IDC_LISTBOXREGISTRY), FALSE);
  49. ::EnableWindow(GetDlgItem(IDC_BUTTONRUNREGCLEAN), FALSE);
  50. ::EnableWindow(GetDlgItem(IDC_BUTTONCHECKREGISTRY), FALSE);
  51. return 0;
  52. }
  53. };
  54. #endif //__PAGEREGISTRY_H_