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

📄 pathbox.h

📁 这些源代码
💻 H
字号:
#if !defined(AFX_PATHBOX_H__15C64209_7215_11D4_85D1_00A0CC253EAC__INCLUDED_)
#define AFX_PATHBOX_H__15C64209_7215_11D4_85D1_00A0CC253EAC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PathBox.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CPathBox window

#include	<afxtempl.h>

class CPathBox : public CComboBoxEx
{
// Construction
public:
	CPathBox();

// Attributes
public:
	class CPathData
	{
	public:
		CPathData ();
		CString		strName;
		int			nItem;
		POSITION	ParentItem;
		int			nImage;
		int			nSelImage;
		DWORD		dwData;
		bool		Expanded;
		int			nIndent;
		int			nMode;
		int			nLevel;
		bool		bVisible;
	};

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPathBox)
	//}}AFX_VIRTUAL

// Implementation
public:
	POSITION GetSelPosition();
	virtual ~CPathBox();
	BOOL SetPath (LPCTSTR pszPath);
	void UpdateDisplay(POSITION &posSel);

	// Generated message map functions
protected:
	void ExpandItem (CString &strPath);
	void InitialUpdate(CString &strPath);
	int GetIconIndex(CString &strFile, DWORD dwAttributes = FILE_ATTRIBUTE_NORMAL);

	//{{AFX_MSG(CPathBox)
	afx_msg void OnGetdispinfo(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()

	CList<CPathData, CPathData&>	m_PathData;
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_PATHBOX_H__15C64209_7215_11D4_85D1_00A0CC253EAC__INCLUDED_)

⌨️ 快捷键说明

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