⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testnview.h

📁 一个简单的N皇后可视化原代码
💻 H
字号:
// testnView.h : interface of the CTestnView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_TESTNVIEW_H__1A389D98_F9BF_4D37_8FE5_010ADE8A8058__INCLUDED_)
#define AFX_TESTNVIEW_H__1A389D98_F9BF_4D37_8FE5_010ADE8A8058__INCLUDED_

//#include "TestDialog.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CTestnView : public CView
{
protected: // create from serialization only
	CTestnView();
	DECLARE_DYNCREATE(CTestnView)

// Attributes
public:
	CTestnDoc* GetDocument();
	void OnchangeNum();
	void Onclear();
	void OnDrawQueen(int[],int);
	bool place(int);
	void OnTest();
	void OnShowEnd();
	void InitQueenmessage();
	void ColorBlue() ;
	void ColorCroci() ;
	void ColorCyan() ;
    void ColorDarkblue() ;
	void ColorDarkgreen() ;
	void ColorDarkred() ;
	void ColorGray() ;
	void ColorGreen() ;
	void ColorLightblue() ;
	void ColorLightgreen() ;
    void ColorPink() ;
	void ColorPurple() ;
    void ColorRed() ;
	void ColorYellow() ;
    int Queennum;
	int wigth;
	int length ;
	int x[20];
    int m_count;
	int m_clicknum ;
	int m_totalnum;
	int m_r;
	int m_g;
	int m_b;
	bool button;
	bool m_colorflag;


// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTestnView)
	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:
	//CTestDialog dlg;
	virtual ~CTestnView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CTestnView)
	afx_msg void OnNum5();
	afx_msg void OnNum6();
	afx_msg void OnNum7();
	afx_msg void OnNum8();
	afx_msg void OnNum9();
	afx_msg void OnNum10();
	afx_msg void OnNum11();
	afx_msg void OnNum12();
	afx_msg void OnNum13();
	afx_msg void OnNum14();
	afx_msg void OnNum4();
	afx_msg void OnBegin();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnColorBlue();
	afx_msg void OnColorCroci();
	afx_msg void OnColorCyan();
	afx_msg void OnColorDarkblue();
	afx_msg void OnColorDarkgreen();
	afx_msg void OnColorDarkred();
	afx_msg void OnColorGray();
	afx_msg void OnColorGreen();
	afx_msg void OnColorLightblue();
	afx_msg void OnColorLightgreen();
	afx_msg void OnColorPink();
	afx_msg void OnColorPurple();
	afx_msg void OnColorRed();
	afx_msg void OnColorYellow();
	afx_msg void OnRandcolor();
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in testnView.cpp
inline CTestnDoc* CTestnView::GetDocument()
   { return (CTestnDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TESTNVIEW_H__1A389D98_F9BF_4D37_8FE5_010ADE8A8058__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -