toolsdlg.h

来自「一款45度2D游戏地图编辑器和大家一起分享啊!」· C头文件 代码 · 共 76 行

H
76
字号
#include "afxcmn.h"
#include "afxwin.h"
#if !defined(AFX_TOOLSDLG_H__BCE71E64_E702_4640_9223_64954DF053A1__INCLUDED_)
#define AFX_TOOLSDLG_H__BCE71E64_E702_4640_9223_64954DF053A1__INCLUDED_
#include ".\\src\\dxutil.h"
#include ".\\src\\ddutil.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ToolsDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CToolsDlg dialog

class CToolsDlg : public CDialog
{
// Construction
public:
	CToolsDlg(CWnd* pParent = NULL);   // standard constructor
	DECLARE_DYNCREATE(CToolsDlg)
// Dialog Data
	//{{AFX_DATA(CToolsDlg)
	enum { IDD = IDD_TOOLSDLG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CToolsDlg)
		// NOTE: the ClassWizard will add member functions here
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	//用来遍历文件
	void BrowseFile(int CallNum,CString strFile);
	// 用来遍历所有图片文件的树形控件
	CTreeCtrl m_FileTree;
	HICON m_hIcon;
	CImageList m_iImageList;//图标链
	HTREEITEM strRoot;
	HTREEITEM strHTFir;
	HTREEITEM strHTSec;
	HTREEITEM strHtThi;
	HTREEITEM strHtFif;
	HTREEITEM strHtEnd;

	HTREEITEM m_hTreeItem;//鼠标双击得到的信息
	HTREEITEM m_hTreeItemParent;//其父亲节电
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();

	afx_msg void OnNMDblclkTree2(NMHDR *pNMHDR, LRESULT *pResult);
	// //显示图片
	CStatic m_Picture;
	CSurface* m_Pic;
//	afx_msg void OnNMRclickTree2(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnNMRclickTree2(NMHDR *pNMHDR, LRESULT *pResult);
};

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

#endif // !defined(AFX_TOOLSDLG_H__BCE71E64_E702_4640_9223_64954DF053A1__INCLUDED_)

⌨️ 快捷键说明

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