📄 mainfrm.h
字号:
// MainFrm.h : interface of the CMainFrame class
//
//#if !defined(AFX_MAINFRM_H__A575FD32_4F4F_46A4_BE80_AB73A1D3E02C__INCLUDED_)
//#define AFX_MAINFRM_H__A575FD32_4F4F_46A4_BE80_AB73A1D3E02C__INCLUDED_
//#if _MSC_VER >= 1000
#pragma once
//#endif // _MSC_VER >= 1000
#include "ChildView.h"
// Array for the toolbar buttons
#if (_WIN32_WCE < 201)
static TBBUTTON g_arCBButtons[] = {
{ 0, ID_FILE_NEW, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0, 0},
{ 1, ID_FILE_OPEN, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0, 1},
{ 2, ID_FILE_SAVE, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0, 2},
{ 0, 0, TBSTATE_ENABLED, TBSTYLE_SEP, 0, 0, 0, -1},
{ 3, ID_EDIT_CUT, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0, 3},
{ 4, ID_EDIT_COPY, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0, 4},
{ 5, ID_EDIT_PASTE, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0, 5}
};
#endif
// 20070827 mike
//#if defined(_WIN32_WCE_PSPC) && (_WIN32_WCE >= 212)
#define NUM_TOOL_TIPS 8
//#endif
class CMainFrame : public CFrameWnd
{
public:
CMainFrame();
protected:
DECLARE_DYNAMIC(CMainFrame)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
// mike 20070827
//virtual void Dump(CDumpContext& dc) const;
#endif
// control bar embedded members
#ifdef WINCE
// 20080827 mike
CCommandBar m_wndCommandBar;
//CCeCommandBar m_wndCommandBar;
#endif
CChildView m_wndView;
// Generated message map functions
protected:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSetFocus(CWnd *pOldWnd);
DECLARE_MESSAGE_MAP()
#ifdef WINCE
LPTSTR MakeString(UINT stringID);
LPTSTR m_ToolTipsTable[NUM_TOOL_TIPS];
#endif
};
//#endif // !defined(AFX_MAINFRM_H__A575FD32_4F4F_46A4_BE80_AB73A1D3E02C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -