#if !defined(AFX_MAINFRM_H__6F45AD95_561B_11D0_8FCF_00C04FC2A0C2__INCLUDED_)
#define AFX_MAINFRM_H__6F45AD95_561B_11D0_8FCF_00C04FC2A0C2__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif
#include "LeashFrame.h"
#include "LeashUIApplication.h"
class CMainFrame : public CLeashFrame
{
private:
int m_winRectLeft;
int m_winRectTop;
int m_winRectRight;
int m_winRectBottom;
BOOL m_bOwnerCreated;
CDialog m_MainFrameOwner;
IUIApplication *pApplication;
protected:
CMFCRibbonBar m_wndRibbonBar;
CMFCRibbonApplicationButton m_wndApplicationButton;
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
public:
static int m_whatSide;
#ifndef NO_STATUS_BAR
static CMFCStatusBar m_wndStatusBar;
#endif
static CMFCToolBar m_wndToolBar;
static BOOL m_isMinimum;
static BOOL m_isBeingResized;
static CImageList m_imageList;
static CImageList m_disabledImageList;
public:
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void RecalcLayout(BOOL bNotify = TRUE);
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
BOOL ShowTaskBarButton(BOOL bVisible);
protected:
protected:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnResetWindowSize();
afx_msg void OnSizing(UINT fwSide, LPRECT pRect);
afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
afx_msg void OnRibbonResize();
afx_msg void OnClose(void);
DECLARE_MESSAGE_MAP()
};
#endif