📄 mainfrm.h
字号:
//////////////////////////////////////////////////////////////////////////////
//类名:CMainFrame
//功能:主框架操作类
//作者:徐景周(jingzhou_xu@163.net)
//组织:未来工作室(Future Studio)
//日期:2002.8.1
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__F69CE168_AC3C_11D6_AA35_A6055C4EE615__INCLUDED_)
#define AFX_MAINFRM_H__F69CE168_AC3C_11D6_AA35_A6055C4EE615__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "BCMenu.h" //加入XP风格菜单,jingzhou xu
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
// Operations
public:
//显示模式[<nViewType> =0:正常模式,=1:简洁模式(无视图),=2:精简模式(只有工具条)]
void ViewMode(int nViewType);
int m_nViewType; //显示模式类型
CRect m_WindowRect,m_ClientRect; //正常窗体的大小
BCMenu m_menu; //加入XP风格菜单变量
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnViewNormal();
afx_msg void OnViewSimple();
afx_msg void OnViewCompact();
afx_msg void OnUpdateViewCompact(CCmdUI* pCmdUI);
afx_msg void OnUpdateViewNormal(CCmdUI* pCmdUI);
afx_msg void OnUpdateViewSimple(CCmdUI* pCmdUI);
afx_msg void OnExit();
afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct);
afx_msg LRESULT OnMenuChar(UINT nChar, UINT nFlags, CMenu* pMenu);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__F69CE168_AC3C_11D6_AA35_A6055C4EE615__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -