mainfrm.h
来自「一个用MFC做的象棋游戏,可以联网双人对下,」· C头文件 代码 · 共 47 行
H
47 行
// MainFrm.h : interface of the CMainFrame class
//
#include "BTime.h"
#include "MyChessDoc.h"
#pragma once
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
// Operations
public:
// Overrides
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
// void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
// Implementation
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
public: // control bar embedded members
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
CButton m_wndStartButton;
CBTime *Timer1,*Timer2;
CMyChessDoc *doc;
// Generated message map functions
protected:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);\
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnTimer(UINT_PTR nIDEvent);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?