📄 mainfrm.h
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__63384504_1232_4DCB_AB25_FD6DD5952EAA__INCLUDED_)
#define AFX_MAINFRM_H__63384504_1232_4DCB_AB25_FD6DD5952EAA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
CMainFrame();
HDC hdc,hdc1; // 申请两个内存变量
HBITMAP bitmap; //用来存放内存中的贴图
// int down;
// 用来装载主人公不同的行走贴图
int i;
int i1;
int i2;
int i3;
//
int duihua;// 用来控制和公主对话
int zhi; //扫帚女孩子的贴图
bool tab;
int control;
int zai;
bool room; // 是否已经在房间里面
int num; //控制和扫帚女孩子是否在对话
int numx;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
void denble (int num);
void Inarrary1();
void Injuxin();
void Inarrary();
void bmove(int &zhi);
void chu1(CString str);
void chu(CString str, int num);
void chuli(CString str, int width, int height, int i);
void colorkey(int i);
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnPaint();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnClose();
//}}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__63384504_1232_4DCB_AB25_FD6DD5952EAA__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -