?? point24dlg.h
字號:
// Point24Dlg.h : header file
//
#if !defined(AFX_POINT24DLG_H__34309438_3377_11D3_860D_8D751F96C64C__INCLUDED_)
#define AFX_POINT24DLG_H__34309438_3377_11D3_860D_8D751F96C64C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CPoint24Dlg dialog
#define BitmapW 70//定義撲克牌的寬度
#define BitmapH 95//定義撲克牌的高度
#include "Express.h"
class CPoint24Dlg : public CDialog
{
// Construction
public:
CPoint24Dlg(CWnd* pParent = NULL); // standard constructor
double m_Result;//儲存計算結果
int m_number1,m_number2,m_number3,m_number4;//撲克牌的點數
int m_pattern1,m_pattern2,m_pattern3,m_pattern4;//撲克牌的圖案
int Step;//進度條的步進量
int m_score;//當前得分
int m_factor;//分數增量
int count;//題數
BOOL IsStart;//是否開始
LV_ITEM lvItem;//定義列表框的列
CExpression m_expression;//計算表達式對象
void OnCancel();//重載該函數使按Escape無法離開程序
// Dialog Data
//{{AFX_DATA(CPoint24Dlg)
enum { IDD = IDD_POINT24_DIALOG };
CListCtrl m_list;//列表框控件變量
CProgressCtrl m_progress;//進度條控件變量
CComboBox m_combo;//組合框控件變量
CEdit m_input;//計算式輸入編輯框控件變量
CString m_inputs;//儲存輸入表達式
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPoint24Dlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CPoint24Dlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnStart();//發牌
afx_msg void OnInput();//輸入計算式
afx_msg void OnCalc();//計算
afx_msg void OnSelchangeCombo();//處理組框選擇
afx_msg void OnTimer(UINT nIDEvent);//處理計時器
afx_msg void OnAbout();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_POINT24DLG_H__34309438_3377_11D3_860D_8D751F96C64C__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -