browseforfolder.h

来自「一个不同目录中多个文件拷贝的助手程序」· C头文件 代码 · 共 50 行

H
50
字号
////////////////////////////////////////////////////////////////////////////////
// $Workfile: BrowseForFolder.h $
// $Archive: /ZipArc/BrowseForFolder.h $
// $Date: 01-11-07 15:52 $
////////////////////////////////////////////////////////////////////////////////
/*
* BrowseForFolder.h
*
* You are free to use and distribute. May not be sold for profit. 
*****************************************************/


#if !defined(AFX_BROWSEFORFOLDER_H__67074462_2EEE_11D3_A25C_F4E7CA30A942__INCLUDED_)
#define AFX_BROWSEFORFOLDER_H__67074462_2EEE_11D3_A25C_F4E7CA30A942__INCLUDED_

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

class CBrowseForFolder  
{
public:
	void SetNewStyle(bool val);
	// parent's HWND
	HWND hWndOwner;
	// directory to select
	CString strStartupDir;
	void SetStatusBar(bool val);
	void SetEditBox(bool val);
	// title of the browse dialog
	CString strTitle;
	// the same as Image variable in the BROWSEINFO structure ( see help )
	int Image;
	// directory to explore from
	CString strDirRoot;
	bool GetFolder(CString &returnPath);
	CBrowseForFolder();
	virtual ~CBrowseForFolder();

protected:
	UINT flags;
	void GetPidl(CString name, LPITEMIDLIST);
	static int CALLBACK BrowseCallbackProc( HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData);
private:

};


#endif // !defined(AFX_BROWSEFORFOLDER_H__67074462_2EEE_11D3_A25C_F4E7CA30A942__INCLUDED_)

⌨️ 快捷键说明

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