📄 mainfrm.h
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__A23926B0_0ADA_4A03_9236_C6D43BF8C941__INCLUDED_)
#define AFX_MAINFRM_H__A23926B0_0ADA_4A03_9236_C6D43BF8C941__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ChildView.h"
#include "ChatWnd.h"
#include "InputWnd.h"
#include "GameThread.h"
#include "MirGameMap.h"
class CMainFrame : public CFrameWnd
{
public:
CMainFrame();
protected:
DECLARE_DYNAMIC(CMainFrame)
// Attributes
public:
// Operations
public:
afx_msg LRESULT OnLogSystem(WPARAM,LPARAM);
afx_msg LRESULT OnLogout(WPARAM,LPARAM);
afx_msg LRESULT OnSetGameMap(WPARAM,LPARAM);
afx_msg LRESULT OnSetPersonInfo(WPARAM,LPARAM);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
protected:
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
public:
CMirGameMap*GetGameMap();
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
public:
void OnWalkDirect(int d);
void OnRunDirect(int d);
CStatusBar m_wndStatusBar;
CWinThread*m_pGameThread;
protected: // control bar embedded members
CToolBar m_wndToolBar;
CChatWnd m_wndChat;
CInputWnd m_wndInput;
CChildView m_wndView;
CMirGameMap m_GameMap;
// Generated message map functions
protected:
int m_RetryTime;
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSetFocus(CWnd *pOldWnd);
afx_msg void OnViewChatWnd();
afx_msg void OnUpdateViewChatWnd(CCmdUI* pCmdUI);
afx_msg void OnLoginGame();
afx_msg void OnUpdateLoginGame(CCmdUI* pCmdUI);
afx_msg void OnRunUp();
afx_msg void OnRunDown();
afx_msg void OnRunRight();
afx_msg void OnRunLeft();
afx_msg void OnSendChatMessage();
afx_msg void OnWalkUp();
afx_msg void OnWalkDown();
afx_msg void OnWalkLeft();
afx_msg void OnWalkRight();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnMoveTo();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__A23926B0_0ADA_4A03_9236_C6D43BF8C941__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -