hanluotadlg.h

来自「一个汉诺塔示例程序」· C头文件 代码 · 共 65 行

H
65
字号
// hanluotaDlg.h : header file
//

#if !defined(AFX_HANLUOTADLG_H__F4EB66F0_37BD_482C_8F77_89AA0E8BA4D8__INCLUDED_)
#define AFX_HANLUOTADLG_H__F4EB66F0_37BD_482C_8F77_89AA0E8BA4D8__INCLUDED_

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

struct struct_Tag_Node
{
	char cTag;
	int nValude;
};


/////////////////////////////////////////////////////////////////////////////
// CHanluotaDlg dialog

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

	short moveTo( struct_Tag_Node *A, struct_Tag_Node *C, int nTiers,struct_Tag_Node *B );
    
// Dialog Data
	//{{AFX_DATA(CHanluotaDlg)
	enum { IDD = IDD_HANLUOTA_DIALOG };
	CListCtrl	m_list_out;
	int		m_tiers;
	DWORD		m_times;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CHanluotaDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CHanluotaDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnConfirm();
	afx_msg void OnTCard(UINT idAction, DWORD dwActionData);
	
	//}}AFX_MSG
	afx_msg long OnFinishedThread(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_HANLUOTADLG_H__F4EB66F0_37BD_482C_8F77_89AA0E8BA4D8__INCLUDED_)

⌨️ 快捷键说明

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