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.

89 lines
2.5 KiB

  1. #if !defined(AFX_PAGEGENERAL_H__7D4A5A55_7F12_4A22_87AF_158186FC700D__INCLUDED_)
  2. #define AFX_PAGEGENERAL_H__7D4A5A55_7F12_4A22_87AF_158186FC700D__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. #include "PageBase.h"
  7. #include "MSConfigState.h"
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CPageGeneral dialog
  10. class CPageGeneral : public CPropertyPage, public CPageBase
  11. {
  12. DECLARE_DYNCREATE(CPageGeneral)
  13. // Construction
  14. public:
  15. CPageGeneral();
  16. ~CPageGeneral();
  17. // Dialog Data
  18. //{{AFX_DATA(CPageGeneral)
  19. enum { IDD = IDD_PAGEGENERAL };
  20. // NOTE - ClassWizard will add data members here.
  21. // DO NOT EDIT what you see in these blocks of generated code !
  22. //}}AFX_DATA
  23. // Overrides
  24. // ClassWizard generate virtual function overrides
  25. //{{AFX_VIRTUAL(CPageGeneral)
  26. protected:
  27. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  28. //}}AFX_VIRTUAL
  29. // Implementation
  30. protected:
  31. // Generated message map functions
  32. //{{AFX_MSG(CPageGeneral)
  33. virtual BOOL OnInitDialog();
  34. afx_msg void OnDiagnosticStartup();
  35. afx_msg void OnNormalStartup();
  36. afx_msg void OnSelectiveStartup();
  37. afx_msg void OnCheckProcSysIni();
  38. afx_msg void OnCheckStartupItems();
  39. afx_msg void OnCheckServices();
  40. afx_msg void OnCheckWinIni();
  41. afx_msg LRESULT OnSetCancelToClose(WPARAM wparam, LPARAM lparam);
  42. afx_msg void OnRadioModified();
  43. afx_msg void OnRadioOriginal();
  44. afx_msg void OnButtonExtract();
  45. afx_msg void OnButtonSystemRestore();
  46. //}}AFX_MSG
  47. DECLARE_MESSAGE_MAP()
  48. public:
  49. void UpdateControls();
  50. void ForceSelectiveRadio(BOOL fNewValue);
  51. TabState GetCurrentTabState();
  52. BOOL OnApply();
  53. void CommitChanges();
  54. void SetNormal();
  55. void SetDiagnostic();
  56. LPCTSTR GetName() { return _T("general"); };
  57. BOOL OnSetActive();
  58. private:
  59. void UpdateCheckBox(CPageBase * pPage, UINT nControlID, BOOL & fAllNormal, BOOL & fAllDiagnostic);
  60. void OnClickedCheckBox(CPageBase * pPage, UINT nControlID);
  61. HWND GetDlgItemHWND(UINT nID)
  62. {
  63. HWND hwnd = NULL;
  64. CWnd * pWnd = GetDlgItem(nID);
  65. if (pWnd)
  66. hwnd = pWnd->m_hWnd;
  67. ASSERT(hwnd);
  68. return hwnd;
  69. }
  70. private:
  71. BOOL m_fForceSelectiveRadio; // TRUE if the user chose the selective radio button
  72. };
  73. //{{AFX_INSERT_LOCATION}}
  74. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  75. #endif // !defined(AFX_PAGEGENERAL_H__7D4A5A55_7F12_4A22_87AF_158186FC700D__INCLUDED_)