mainfrm.h
来自「《Visual C++ Bible》或者说是《Visual C++ 宝典》的对应」· C头文件 代码 · 共 61 行
H
61 行
// mainfrm.h : interface of the DMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
class DMainFrame : public CFrameWnd
{
public:
DMainFrame();
protected: // create from serialization only
DECLARE_DYNCREATE(DMainFrame)
// Attributes
public:
BOOL d_bSearchBarVisible; // Search bar visibility flag.
CDialogBar * d_pDialogBar; // Toolbar with dialog controls.
CFileDialog * d_pOpenFile; // Ptr to OpenFile dialog.
DExtensionDlg * d_pExtDlg; // Ptr to file extension dialog.
DProgress * d_pdlgProgress; // Progress modeless dialog.
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(DMainFrame)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~DMainFrame();
#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(DMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnFileOpen();
afx_msg void OnFileType();
afx_msg void CmdViewSearchbar();
afx_msg void UpdViewSearchbar(CCmdUI* pCmdUI);
afx_msg void CmdProgress();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
afx_msg BOOL CmdSearchForward(UINT nID);
afx_msg BOOL CmdSearchBackward(UINT nID);
afx_msg LRESULT MsgProgressClosing(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// ID of Search bar child window
const int ID_SEARCH_BAR = 0x9000;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?