📄 ninegongdlg.h
字号:
// ninegongDlg.h : 头文件
//
#pragma once
#include"Node.h"
#include<deque>
#include<vector>
#include<list>
#define IDM_TIMER 100
// CninegongDlg 对话框
class CninegongDlg : public CDialog
{
// 构造
public:
CninegongDlg(CWnd* pParent = NULL); // 标准构造函数
~CninegongDlg();
// 对话框数据
enum { IDD = IDD_NINEGONG_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
// 实现
protected:
HICON m_hIcon;
// 生成的消息映射函数
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
BOOL CninegongDlg::PreTranslateMessage(MSG* pMsg) ;
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
private:
RECT rect[9];
int number[9];
int orient[9];
int xWidth;int yHeight;
POINT up,down;
int zPos;
int count;
CFont font;
void DrawBackGround(CDC* dc,RECT rt,bool isHiscroll=true);
void Draw(int left,int right,bool isLeft=true,bool isHiscroll=true);
void sortDeque(std::deque<Node> &deque,const Node& cmp);
void Random();
std::list<Node> closeTable;
void UpdateStatus();
void Start();
int choice;
public:
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnOpen();
afx_msg void OnDisplay();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
bool SearchNode(const Node& orient);
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnStart();
bool SearchOpen(const Node& orient);
bool SearchPri(const Node& orient);
afx_msg void OnSpead();
afx_msg void OnPriorty();
afx_msg void OnChange();
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -