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

📄 shududlg.h

📁 CreateData.cpp 文件是产生9x9矩形的数字算法 ShuDu.java 文件只是为了更好的理解数独一个文件
💻 H
字号:
// ShuDuDlg.h : header file
//

#if !defined(AFX_SHUDUDLG_H__5F89BB59_47DC_4122_96F3_BAA7A1F15EF0__INCLUDED_)
#define AFX_SHUDUDLG_H__5F89BB59_47DC_4122_96F3_BAA7A1F15EF0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CShuDuDlg dialog

#include "ShuDuCtrl.h"

class CShuDuDlg : public CDialog
{
// Construction
public:
	CShuDuDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CShuDuDlg)
	enum { IDD = IDD_SHUDU_DIALOG };
	CEdit	m_Note;
	CButton	m_ShowSelNumBtn;
	CButton	m_LevelNormalBtn;
	CButton	m_LevelHardBtn;
	CButton	m_StartBtn;
	CButton	m_SaveBtn;
	CButton	m_RestartBtn;
	CButton	m_MainRect;
	CButton	m_OptionRect;
	CButton	m_LevelEasyBtn;
	CButton	m_ExitBtn;
	CButton	m_ShowTrackBtn;
	CButton	m_ShowNumBtn;
	CButton	m_LevelRect;
	CButton	m_UndoBtn;
	CShuDuCtrl	m_sdCtrl;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CShuDuDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	int m_GameData[9][9];
	void CreateGameData();
	int CurrentLevel;

	

	// Generated message map functions
	//{{AFX_MSG(CShuDuDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnStartnewgame();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnUndo();
	afx_msg void OnSavegame();
	afx_msg void OnRestart();
	afx_msg void OnLevelnormal();
	afx_msg void OnLevelhard();
	afx_msg void OnLeveleasy();
	afx_msg void OnExit();
	afx_msg void OnDisplaytrack();
	afx_msg void OnDisplaynum();
	afx_msg void OnShowselnum();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SHUDUDLG_H__5F89BB59_47DC_4122_96F3_BAA7A1F15EF0__INCLUDED_)

⌨️ 快捷键说明

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