?? numgamedlg.h
字號:
// NumGameDlg.h : 頭文件
//
#pragma once
#include "afxwin.h"
// CNumGameDlg 對話框
class CNumGameDlg : public CDialog
{
// 構造
public:
CNumGameDlg(CWnd* pParent = NULL); // 標準構造函數
// 對話框數據
enum { IDD = IDD_NUMGAME_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
// 實現
protected:
HICON m_hIcon;
// 生成的消息映射函數
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
int m_nNumber1;
public:
int m_nNumber2;
public:
int m_nNumber3;
public:
int m_nNumber4;
public:
CListBox m_listhistory;
public:
afx_msg void OnBnClickedButtonGuess();
public:
int m_nGuessNumber[4];
int m_nGuessTimes;
public:
afx_msg void OnBnClickedButtonRestart();
public:
afx_msg void OnBnClickedButtonFailure();
public:
afx_msg void OnBnClickedOk();
public:
int random(void);
public:
void Generator(int* nGuessNum);
public:
CStatic m_statictext;
public:
CRect m_rectPosition;
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -