📄 mainfrm.h
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__3696E6D5_E993_4EED_BF9B_3349F974C80F__INCLUDED_)
#define AFX_MAINFRM_H__3696E6D5_E993_4EED_BF9B_3349F974C80F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "WorkSpaceBar.h"
#include "OutBar.h"
#include "ProgressStatusBar.h"
#include "BCMenu.h"
class CMainFrame : public CMDIFrameWnd
{
DECLARE_DYNAMIC(CMainFrame)
public:
CMainFrame();
// Attributes
public:
// Operations
public:
COutBar* GetOutBar(){return &m_wndOutBar;}; //得到输出栏
CWorkSpaceBar* GetWorkSapceBar(){return &m_wndWorkSpaceBar;};//得到工作空间栏
CProgressStatusBar* GetStatusBar(){return &m_wndStatusBar;}; //得到状态栏
BOOL GetScreenStatus(){return m_bIsFullScreen;};//得到窗口状态:全屏否
HMENU NewMenu();
HMENU NewDefaultMenu();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
CWorkSpaceBar m_wndWorkSpaceBar; //工作空间栏
COutBar m_wndOutBar; //输出信息显示栏
CProgressStatusBar m_wndStatusBar;//含有进度条的状态栏
CToolBar m_wndToolBar;
BCMenu m_menu,m_menuDefault;
CToolBar *m_pwndFullScrnBar;
WINDOWPLACEMENT m_wpPrev;
CRect m_FullScreenWindowRect;
CString m_strOut;//与结果显示编辑框对应的变量
BOOL m_bIsFullScreen;
BOOL m_bWorkSpaceBarVisible;
BOOL m_bOutBarVisible;
BOOL m_bToolBarVisible;
BOOL m_bStatusBarVisible;
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
afx_msg void OnFullscreen();
afx_msg void OnUpdateFullscreen(CCmdUI* pCmdUI);
afx_msg void OnViewOutbar();
afx_msg void OnUpdateViewOutbar(CCmdUI* pCmdUI);
afx_msg void OnViewWorkspace();
afx_msg void OnUpdateViewWorkspace(CCmdUI* pCmdUI);
afx_msg void OnXp();
afx_msg void On98();
afx_msg void OnUpdateXp(CCmdUI* pCmdUI);
afx_msg void OnUpdate98(CCmdUI* pCmdUI);
afx_msg void OnClose();
//}}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__3696E6D5_E993_4EED_BF9B_3349F974C80F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -