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.

177 lines
4.5 KiB

  1. /*--------------------------------------------------------------------------*
  2. *
  3. * Microsoft Windows
  4. * Copyright (C) Microsoft Corporation, 1992 - 1999
  5. *
  6. * File: props.cpp
  7. *
  8. * Contents: Interface file for console property sheet and page(s)
  9. *
  10. * History: 05-Dec-97 JeffRo Created
  11. *
  12. *--------------------------------------------------------------------------*/
  13. #if !defined(AFX_PROPS_H__088693B7_6D93_11D1_802E_0000F875A9CE__INCLUDED_)
  14. #define AFX_PROPS_H__088693B7_6D93_11D1_802E_0000F875A9CE__INCLUDED_
  15. #if _MSC_VER >= 1000
  16. #pragma once
  17. #endif // _MSC_VER >= 1000
  18. // props.h : header file
  19. //
  20. #include "amc.h" // for CAMCApp::ProgramMode
  21. #include "smarticon.h"
  22. class CMainFrame;
  23. class CAMCDoc;
  24. class CConsolePropSheet;
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CConsolePropPage dialog
  27. class CConsolePropPage : public CPropertyPage
  28. {
  29. DECLARE_DYNCREATE(CConsolePropPage)
  30. // Construction
  31. public:
  32. CConsolePropPage();
  33. ~CConsolePropPage();
  34. // Dialog Data
  35. //{{AFX_DATA(CConsolePropPage)
  36. enum { IDD = IDD_PROPPAGE_CONSOLE };
  37. CButton m_wndDontSaveChanges;
  38. CButton m_wndAllowViewCustomization;
  39. CStatic m_wndModeDescription;
  40. CEdit m_wndTitle;
  41. CStatic m_wndIcon;
  42. int m_nConsoleMode;
  43. BOOL m_fDontSaveChanges;
  44. CString m_strTitle;
  45. BOOL m_fAllowViewCustomization;
  46. //}}AFX_DATA
  47. private:
  48. HINSTANCE m_hinstSelf;
  49. CSmartIcon m_icon;
  50. CString m_strIconFile;
  51. int m_nIconIndex;
  52. bool m_fTitleChanged;
  53. bool m_fIconChanged;
  54. CAMCDoc* const m_pDoc;
  55. CString m_strDescription[eMode_Count];
  56. void SetDescriptionText ();
  57. void EnableDontSaveChanges();
  58. // Overrides
  59. // ClassWizard generate virtual function overrides
  60. //{{AFX_VIRTUAL(CConsolePropPage)
  61. public:
  62. virtual void OnOK();
  63. protected:
  64. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  65. //}}AFX_VIRTUAL
  66. // Implementation
  67. protected:
  68. // Generated message map functions
  69. //{{AFX_MSG(CConsolePropPage)
  70. afx_msg void OnSelendokConsoleMode();
  71. virtual BOOL OnInitDialog();
  72. afx_msg void OnDontSaveChanges();
  73. afx_msg void OnAllowViewCustomization();
  74. afx_msg void OnChangeIcon();
  75. afx_msg void OnChangeCustomTitle();
  76. //}}AFX_MSG
  77. IMPLEMENT_CONTEXT_HELP(g_aHelpIDs_IDD_PROPPAGE_CONSOLE);
  78. DECLARE_MESSAGE_MAP()
  79. };
  80. /////////////////////////////////////////////////////////////////////////////
  81. // CConsolePropPage dialog
  82. class CDiskCleanupPage : public CPropertyPage
  83. {
  84. DECLARE_DYNCREATE(CDiskCleanupPage)
  85. // Construction
  86. public:
  87. CDiskCleanupPage();
  88. ~CDiskCleanupPage();
  89. // Dialog Data
  90. enum { IDD = IDD_DISK_CLEANUP};
  91. virtual BOOL OnInitDialog();
  92. IMPLEMENT_CONTEXT_HELP(g_aHelpIDs_IDD_PROPPAGE_DISK_CLEANUP);
  93. // Generated message map functions
  94. protected:
  95. //{{AFX_MSG(CDiskCleanupPage)
  96. afx_msg void OnDeleteTemporaryFiles();
  97. //}}AFX_MSG
  98. DECLARE_MESSAGE_MAP()
  99. private:
  100. SC ScRecalculateUsedSpace();
  101. };
  102. /////////////////////////////////////////////////////////////////////////////
  103. // CConsolePropSheet
  104. class CConsolePropSheet : public CPropertySheet
  105. {
  106. DECLARE_DYNAMIC(CConsolePropSheet)
  107. // Construction
  108. public:
  109. CConsolePropSheet(UINT nIDCaption = IDS_CONSOLE_PROPERTIES, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
  110. CConsolePropSheet(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
  111. private:
  112. void CommonConstruct();
  113. // Attributes
  114. public:
  115. CConsolePropPage m_ConsolePage;
  116. CDiskCleanupPage m_diskCleanupPage;
  117. // Operations
  118. public:
  119. void SetTitle (LPCTSTR pszTitle);
  120. // Overrides
  121. // ClassWizard generated virtual function overrides
  122. //{{AFX_VIRTUAL(CConsolePropSheet)
  123. public:
  124. virtual INT_PTR DoModal();
  125. //}}AFX_VIRTUAL
  126. // Implementation
  127. public:
  128. virtual ~CConsolePropSheet();
  129. // Generated message map functions
  130. protected:
  131. //{{AFX_MSG(CConsolePropSheet)
  132. virtual BOOL OnInitDialog();
  133. //}}AFX_MSG
  134. DECLARE_MESSAGE_MAP()
  135. };
  136. /////////////////////////////////////////////////////////////////////////////
  137. //{{AFX_INSERT_LOCATION}}
  138. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  139. #endif // !defined(AFX_PROPS_H__088693B7_6D93_11D1_802E_0000F875A9CE__INCLUDED_)