📄 guessdlg.h
字号:
// GuessDlg.h : header file
//
#if !defined(AFX_GUESSDLG_H__6F732C72_11DD_4DD6_8F87_02A7F36AB0F8__INCLUDED_)
#define AFX_GUESSDLG_H__6F732C72_11DD_4DD6_8F87_02A7F36AB0F8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CGuessDlg dialog
class CGuessDlg : public CDialog
{
// Construction
public:
void set_num(char);
CGuessDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CGuessDlg)
enum { IDD = IDD_GUESS_DIALOG };
CString m_strResult1;
CString m_strResult2;
CString m_strResult3;
CString m_strResult4;
CString m_strResult5;
CString m_strResult6;
CString m_strResult7;
CString m_strResult8;
CString m_strKey;
CString m_strDis;
int m_nChance;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGuessDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CGuessDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnConfirm();
afx_msg void OnCe();
afx_msg void OnNewGame();
afx_msg void OnButton0();
afx_msg void OnButton1();
afx_msg void OnButton2();
afx_msg void OnButton3();
afx_msg void OnButton4();
afx_msg void OnButton5();
afx_msg void OnButton6();
afx_msg void OnButton7();
afx_msg void OnButton8();
afx_msg void OnButton9();
afx_msg void OnBUTTONHelp();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
char TypeChange(int);
void NumCompare(CString &);
void InitializeNumber();
bool GameState;
int count;
char number[4];
char key_num[4];
bool ButtonControl;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GUESSDLG_H__6F732C72_11DD_4DD6_8F87_02A7F36AB0F8__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -