1 // **************************************************************************************
3 // By: Arthur David Leather
5 // Copyright @1998 Massachusetts Institute of Technology - All rights reserved.
6 // Description: H file for MainFrm.cpp. Contains variables and functions
11 // MM/DD/YY Inits Description of Change
12 // 12/02/98 ADL Original
13 // **************************************************************************************
16 #if !defined(AFX_MAINFRM_H__6F45AD95_561B_11D0_8FCF_00C04FC2A0C2__INCLUDED_)
17 #define AFX_MAINFRM_H__6F45AD95_561B_11D0_8FCF_00C04FC2A0C2__INCLUDED_
21 #endif // _MSC_VER >= 1000
23 #include "LeashFrame.h"
24 #include "LeashUIApplication.h"
26 class CMainFrame : public CLeashFrame
34 CDialog m_MainFrameOwner;
35 IUIApplication *pApplication;
37 protected: // create from serialization only
38 // Ribbon bar for the application
39 CMFCRibbonBar m_wndRibbonBar;
40 // Our own custom application button we can keep hidden.
41 CMFCRibbonApplicationButton m_wndApplicationButton;
45 DECLARE_DYNCREATE(CMainFrame)
49 static int m_whatSide;
51 static CMFCStatusBar m_wndStatusBar;
53 static CMFCToolBar m_wndToolBar;
54 static BOOL m_isMinimum;
55 static BOOL m_isBeingResized;
56 static CImageList m_imageList;
57 static CImageList m_disabledImageList;
62 // ClassWizard generated virtual function overrides
63 //{{AFX_VIRTUAL(CMainFrame)
65 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
66 virtual void RecalcLayout(BOOL bNotify = TRUE);
67 virtual BOOL PreTranslateMessage(MSG* pMsg);
69 virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
74 virtual ~CMainFrame();
76 virtual void AssertValid() const;
77 virtual void Dump(CDumpContext& dc) const;
79 BOOL ShowTaskBarButton(BOOL bVisible);
81 protected: // control bar embedded members
84 // Generated message map functions
86 //{{AFX_MSG(CMainFrame)
87 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
88 afx_msg void OnResetWindowSize();
89 afx_msg void OnSizing(UINT fwSide, LPRECT pRect);
90 afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
91 afx_msg void OnRibbonResize();
92 afx_msg void OnClose(void);
93 //afx_msg void OnContextHelp();
98 /////////////////////////////////////////////////////////////////////////////
100 //{{AFX_INSERT_LOCATION}}
101 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
103 #endif // !defined(AFX_MAINFRM_H__6F45AD95_561B_11D0_8FCF_00C04FC2A0C2__INCLUDED_)