📄 n_queensdemoview.h
字号:
// N_QueensDemoView.h : interface of the CN_QueensDemoView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_N_QUEENSDEMOVIEW_H__85DFBE67_CD35_420C_AE24_2740AD1CB7CC__INCLUDED_)
#define AFX_N_QUEENSDEMOVIEW_H__85DFBE67_CD35_420C_AE24_2740AD1CB7CC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CN_QueensDemoView : public CView
{
protected: // create from serialization only
CN_QueensDemoView();
DECLARE_DYNCREATE(CN_QueensDemoView)
// Attributes
public:
CN_QueensDemoDoc* GetDocument();
// Operations
public:
public:
int m_n;
int* m_v;
bool* m_flag;
void GetSolveV(int* v,int n);
void ReleaseSolveV();
//drawing
private:
int m_d;
void DrawChessBoard(CDC* pDC);
void DrawChess(CDC* pDC, int i, int j);
void DrawAllChesses(CDC* pDC);
public :
CDialog* m_pDlgInfo;
void ShowDemo();
void ShowWaitInfo();
void HideWaitInfo();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CN_QueensDemoView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CN_QueensDemoView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CN_QueensDemoView)
afx_msg void OnExec();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in N_QueensDemoView.cpp
inline CN_QueensDemoDoc* CN_QueensDemoView::GetDocument()
{ return (CN_QueensDemoDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_N_QUEENSDEMOVIEW_H__85DFBE67_CD35_420C_AE24_2740AD1CB7CC__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -