📄 mainfrm.h
字号:
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2008
//
// The following code is supplied "as-is" and
// is given without warranty of any kind.
// It may be freely distributed and used.
// The user holds author blameless from any complications or
// problems that may arise from the use of this code.
//
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
// $Workfile: $ created: 04/05/2008 11:11
////////////////////////////////////////////////////////////////////////////////
// $Revision: $ $Modtime: $
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
// Author: steveb
//
// History:
//
////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "wndpos.h"
#include "Titlebar.h"
#include "MultiViewSplitterWnd.h"
namespace Views
{
class CCodezBankView;
class CLeftView;
};
using namespace Views;
using namespace Utils;
class CMainFrame : public CFrameWnd
{
DECLARE_DYNCREATE(CMainFrame)
public:
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual ~CMainFrame();
CCodezBankView* GetRightPane();
CLeftView* GetLeftPane();
virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
void SwitchView(LPCTSTR lpNewView);
void UpdateIndSnipCount(CCmdUI* pCmdUI, INT_PTR nCount);
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
CWindowPosition m_pos;
CMultiViewSplitterWnd m_wndSplitter;
CTitleBar m_titleBar;
CFindReplaceDialog* m_pFindDlg;
CMainFrame();
DECLARE_MESSAGE_MAP()
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnUpdateViewStyles(CCmdUI* pCmdUI);
afx_msg void OnViewStyle(UINT nCommandID);
afx_msg void OnDestroy();
afx_msg LRESULT OnIdleUpdateCmdUI(WPARAM wParam, LPARAM);
afx_msg LRESULT OnFindReplace(WPARAM wparam, LPARAM lparam);
afx_msg void OnEditFind();
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -