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.

79 lines
1.9 KiB

  1. // PageIni.h : Declaration of the CPageIni
  2. // Commenting out this whole file - we're dropping the registry tab.
  3. #if FALSE
  4. /*
  5. #ifndef __PAGEREGISTRY_H_
  6. #define __PAGEREGISTRY_H_
  7. #include "resource.h" // main symbols
  8. #include <atlhost.h>
  9. #include "msconfigstate.h"
  10. #include "pagebase.h"
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CPageIni
  13. class CPageRegistry : public CAxDialogImpl<CPageRegistry>, public CPageBase
  14. {
  15. public:
  16. CPageRegistry()
  17. {
  18. m_uiCaption = IDS_REGISTRY_CAPTION;
  19. m_strName = _T("registry");
  20. }
  21. ~CPageRegistry()
  22. {
  23. }
  24. enum { IDD = IDD_PAGEREGISTRY };
  25. BEGIN_MSG_MAP(CPageIni)
  26. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  27. END_MSG_MAP()
  28. // Handler prototypes:
  29. // LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  30. // LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  31. // LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
  32. public:
  33. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
  34. {
  35. ::EnableWindow(GetDlgItem(IDC_LISTBOXREGISTRY), FALSE);
  36. ::EnableWindow(GetDlgItem(IDC_BUTTONRUNREGCLEAN), FALSE);
  37. ::EnableWindow(GetDlgItem(IDC_BUTTONCHECKREGISTRY), FALSE);
  38. return 0;
  39. }
  40. private:
  41. //-------------------------------------------------------------------------
  42. // Overloaded functions from CPageBase (see CPageBase declaration for the
  43. // usage of these methods).
  44. //-------------------------------------------------------------------------
  45. void CreatePage(HWND hwnd, const RECT & rect)
  46. {
  47. Create(hwnd);
  48. MoveWindow(&rect);
  49. }
  50. CWindow * GetWindow()
  51. {
  52. return ((CWindow *)this);
  53. }
  54. BOOL Apply(CString * pstrTab, CString * pstrDescription, CString * pstrEntry)
  55. {
  56. SetDirty(FALSE);
  57. return TRUE;
  58. }
  59. BOOL Undo(const CString & strEntry)
  60. {
  61. return FALSE;
  62. }
  63. };
  64. #endif //__PAGEREGISTRY_H_
  65. */
  66. #endif // FALSE