📄 mainfrm.h
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -