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.

81 lines
2.0 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1996-1999 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // MainFrm.h
  7. //
  8. // Abstract:
  9. // Definition of the CMainFrame class.
  10. //
  11. // Author:
  12. // David Potter (davidp) May 1, 1996
  13. //
  14. // Revision History:
  15. //
  16. // Notes:
  17. //
  18. /////////////////////////////////////////////////////////////////////////////
  19. #ifndef _MAINFRM_H_
  20. #define _MAINFRM_H_
  21. /////////////////////////////////////////////////////////////////////////////
  22. // Class CMainFrame
  23. /////////////////////////////////////////////////////////////////////////////
  24. class CMainFrame : public CMDIFrameWnd
  25. {
  26. DECLARE_DYNAMIC(CMainFrame)
  27. public:
  28. CMainFrame(void);
  29. // Attributes
  30. public:
  31. // Operations
  32. public:
  33. // For customizing the default messages on the status bar
  34. virtual void GetMessageString(UINT nID, CString& rMessage) const;
  35. // Overrides
  36. // ClassWizard generated virtual function overrides
  37. //{{AFX_VIRTUAL(CMainFrame)
  38. //}}AFX_VIRTUAL
  39. // Implementation
  40. public:
  41. #ifdef _DEBUG
  42. virtual void AssertValid() const;
  43. virtual void Dump(CDumpContext& dc) const;
  44. #endif
  45. protected:
  46. // control bar embedded members
  47. CStatusBar m_wndStatusBar;
  48. CToolBar m_wndToolBar;
  49. // Generated message map functions
  50. protected:
  51. //{{AFX_MSG(CMainFrame)
  52. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  53. afx_msg void OnClose();
  54. afx_msg void OnHelp();
  55. //}}AFX_MSG
  56. afx_msg LRESULT OnRestoreDesktop(WPARAM wparam, LPARAM lparam);
  57. afx_msg LRESULT OnClusterNotify(WPARAM wparam, LPARAM lparam);
  58. DECLARE_MESSAGE_MAP()
  59. }; //*** class CMainFrame
  60. /////////////////////////////////////////////////////////////////////////////
  61. // Global Variables
  62. /////////////////////////////////////////////////////////////////////////////
  63. BOOL ReadWindowPlacement(OUT LPWINDOWPLACEMENT pwp, IN LPCTSTR pszSection, IN DWORD nValueNum);
  64. void WriteWindowPlacement(IN const LPWINDOWPLACEMENT pwp, IN LPCTSTR pszSection, IN DWORD nValueNum);
  65. /////////////////////////////////////////////////////////////////////////////
  66. #endif // _MAINFRM_H_