accel.h
来自「这是MFC Windows程序设计(第2版)书上的代码。第2章」· C头文件 代码 · 共 34 行
H
34 行
#define LINESIZE 8
class CMyApp : public CWinApp
{
public:
virtual BOOL InitInstance ();
};
class CMainWindow : public CFrameWnd
{
protected:
int m_nCellWidth; // Cell width in pixels
int m_nCellHeight; // Cell height in pixels
int m_nRibbonWidth; // Ribbon width in pixels
int m_nViewWidth; // Workspace width in pixels
int m_nViewHeight; // Workspace height in pixels
int m_nHScrollPos; // Horizontal scroll position
int m_nVScrollPos; // Vertical scroll position
int m_nHPageSize; // Horizontal page size
int m_nVPageSize; // Vertical page size
public:
CMainWindow ();
protected:
afx_msg void OnPaint ();
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize (UINT nType, int cx, int cy);
afx_msg void OnHScroll (UINT nCode, UINT nPos, CScrollBar* pScrollBar);
afx_msg void OnVScroll (UINT nCode, UINT nPos, CScrollBar* pScrollBar);
DECLARE_MESSAGE_MAP ()
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?