?? 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 + -