📄 dgview.h
字号:
#if !defined(AFX_DGVIEW_H__D14344CB_FAAB_4330_9CC3_CD7FB6999F79__INCLUDED_)
#define AFX_DGVIEW_H__D14344CB_FAAB_4330_9CC3_CD7FB6999F79__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DGView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDGWnd view
class CDGWnd : public CWnd
{
protected:
DECLARE_DYNCREATE(CDGWnd)
// Attributes
public:
CDGWnd(); // protected constructor used by dynamic creation
virtual ~CDGWnd();
// Operations
public:
CRect RectOfBox();
void CheckGame();
bool m_bGameIsValid;
void SetTitle();
void Init();
void NewDefGame();
void SaveDefGameAs();
void ClrOpsRecords(CObList *pList);
CString m_strFile;
BOOL GiveUp();
bool GameIsValid();
void Shuffle();
void LoadDefGame();
void SaveDefGame(void);
void Set(UINT pos,UINT card);
UINT Get(UINT pos);
CRect RectOf(UINT pos);
UINT HitTest(const CPoint& pt);
bool m_bModified;
UINT m_iSrcCol;
UCHAR m_iTbl[52];
UCHAR m_iBox[52];
int m_nCurGameNumber;
UINT m_iCards[8][20];//6+13=19
UINT m_iBuffer[4];
UINT m_iRecycle[4][14];
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDGWnd)
public:
protected:
virtual void OnPaint(); // overridden to draw this view
//}}AFX_VIRTUAL
// Implementation
protected:
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CDGWnd)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DGVIEW_H__D14344CB_FAAB_4330_9CC3_CD7FB6999F79__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -