www.pudn.com > SOAVI2BMP_ACTIVEMOVIE.rar > folderdialog.h, change:2002-06-14,size:1112b


// FolderDialog.h: interface for the CFolderDialog class. 
 
#ifndef _CFolderDialog_ 
#define _CFolderDialog_ 
 
#include <shlobj.h> 
 
class CFolderDialog   
{ 
friend static int CALLBACK BrowseDirectoryCallback( 
				HWND hWnd, UINT uMsg, LPARAM lParam, LPARAM lpData); 
 
public: 
	CFolderDialog(LPCTSTR lpszFolderName = NULL,  
				  DWORD dwFlags = NULL/*BIF_RETURNONLYFSDIRS*/,  
				  CWnd* pParentWnd = NULL); 
	virtual ~CFolderDialog(); 
	virtual int DoModal(); 
	CString GetPathName() const; 
 
protected: 
	virtual void OnInitDialog(); 
	virtual void OnSelChanged(ITEMIDLIST* pIdl); 
	virtual void CallbackFunction(HWND hWnd, UINT uMsg,	LPARAM lParam); 
 
	void EnableOK(BOOL bEnable = TRUE); 
	void SetSelection(LPCTSTR pszSelection); 
	void SetSelection(ITEMIDLIST* pIdl); 
	void SetStatusText(LPCTSTR pszStatusText); 
	CString ShortName(const CString& strName); 
 
public: 
	BROWSEINFO m_bi; 
 
protected: 
	CString m_strInitialFolderName; 
	CString m_strFinalFolderName; 
 
	TCHAR m_szDisplayName[MAX_PATH]; 
	TCHAR m_szPath[MAX_PATH]; 
 
	HWND m_hDialogBox; 
 
 
}; 
 
#endif // _CFolderDialog_