?? 3_1view.h
字號:
// 3_1View.h : interface of the CMy3_1View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_3_1VIEW_H__9FBADA6D_CAD7_11D5_B2C4_5254AB2BD63E__INCLUDED_)
#define AFX_3_1VIEW_H__9FBADA6D_CAD7_11D5_B2C4_5254AB2BD63E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CMy3_1View : public CView
{
protected: // create from serialization only
CMy3_1View();
DECLARE_DYNCREATE(CMy3_1View)
// Attributes
public:
CMy3_1Doc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMy3_1View)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
CPoint vspoint;//保存vscomputer時白棋位置
int vscomputer;
void searchcandown1(int i,int j,int n);
void searchcandown2(int i,int j,int n);
void searchcandown3(int i,int j,int n);
void searchcandown4(int i,int j,int n);
CPoint maxnum(int a,int b,int c,int d);
void bestputdown(int i,int j);
void computerdown();
void putdown(CPoint point);
void over(CPoint point);
HCURSOR hcursorwhite;
HCURSOR hcursorblack;
int wzq[19][19];
bool colorwhite;
CBitmap m_bmblack;
CBitmap m_bmwhite;
CPoint bpointcan4,//這個位置空,它旁邊有四個黑棋
wpointcan4,//這個位置空,它旁邊有四個白棋
bpointcan3,//這個位置空,它的旁邊有三個黑棋
wpointcan3,//這個位置空,它的旁邊有三個白棋
bpointcan2,//這個位置空,它的旁邊有兩個黑棋
wpointcan2,//這個位置空,它的旁邊有兩個白棋
bpointcan1;//不是以上情況,這個位置空
virtual ~CMy3_1View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CMy3_1View)
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
afx_msg void OnStart();
afx_msg void OnPlayer();
afx_msg void OnCpmputer();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in 3_1View.cpp
inline CMy3_1Doc* CMy3_1View::GetDocument()
{ return (CMy3_1Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_3_1VIEW_H__9FBADA6D_CAD7_11D5_B2C4_5254AB2BD63E__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -