📄 bbdlg.h
字号:
// BBDlg.h : header file
//
#if !defined(AFX_BBDLG_H__C0952CA7_12D7_11D8_A2AD_00055DE8A3EF__INCLUDED_)
#define AFX_BBDLG_H__C0952CA7_12D7_11D8_A2AD_00055DE8A3EF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CBBDlg dialog
#include "afxmt.h"
#include "Macro.h"
#include "RussionBlock.h"
#include "Winuser.h"
#define WM_WATCH WM_USER+100
class CBBDlg : public CDialog
{
BOOL m_bpause;
static UINT top[ROW_BLOCK_COUNT+2];
static BYTE Face[COL_BLOCK_COUNT+4][ROW_BLOCK_COUNT+2];//
static CRussionBlock s_CurBlock;
//static CRussionBlock *s_NextBlock;
static CLR_TYPE *ct;
static int seed;
static COLORREF color[7];
static COLORREF gray;
static CEvent gEnd;
static HWND hw;
static CWnd* gwnd;
static HWND game;
static HDC fhdc;
static HDC nhdc;
static UINT m_uiTop;
//static UINT m_uiBottom;
//static UINT m_uiPriBtm;
static UINT Cal(LPVOID pPar);
//static int s_nMove;
static int s_pos[4];
//static int s_status;
static int count;
static UINT s_uDownDelay;
static UINT s_uFastDelay;
static UINT s_uEraseDelay;
static UINT s_uTurnDelay;
///////////////////////////////////////////
static int error;
// Construction
public:
static void GetBlk2(HDC& hdc);
static void GetFirstBlk(HDC hDC);
static HWND nhwnd;
static HWND fhwnd;
//BOOL CALLBACK EnumChildProc(HWND hwndd,LPARAM lParam);
static void GetBlk(HDC& hdc);
static void Help(BOOL uitype,BOOL uistatus);
static void ThreadFinish(CBBDlg* ths);
static void GetFirstBlock(HDC hdc);
CBBDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CBBDlg)
enum { IDD = IDD_BB_DIALOG };
CEdit m_Ehandle;
CEdit m_Etype;
CEdit m_Estatus;
CStatic m_error;
CSliderCtrl m_setErase;
CSliderCtrl m_setdown;
CSliderCtrl m_setturn;
CSliderCtrl m_setFast;
CButton m_save;
CStatic m_turn_delay;
CStatic m_fast_delay;
CStatic m_erase_delay;
CStatic m_down_delay;
CButton m_default;
CButton m_start;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBBDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CBBDlg)
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 OnSave();
afx_msg void OnDefault();
afx_msg void OnWatch();
afx_msg void OnReleasedcaptureFastAfter(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnReleasedcaptureDownAfter(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnReleasedcaptureTurnAfter(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnReleasedcaptureEraseAfter(NMHDR* pNMHDR, LRESULT* pResult);
virtual void OnCancel();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BBDLG_H__C0952CA7_12D7_11D8_A2AD_00055DE8A3EF__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -