www.pudn.com > 多线程文件分割软件.rar > Win2KFileDialog.h


#ifndef _WIN2KFILEDIALOG_H 
#define _WIN2KFILEDIALOG_H 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
///////////////////////////////////////////////////////////////////////////// 
 
class CWin2KFileDialog : public CFileDialog 
{ 
	DECLARE_DYNAMIC(CWin2KFileDialog) 
 
public: 
	void SetDocumentPointer (CDocument* pDoc); 
	void SetAppPointer(CWinApp* pApp); 
	int DoModal(); 
	CWin2KFileDialog(BOOL bOpenFileDialog, // TRUE for FileOpen, FALSE for FileSaveAs 
		LPCTSTR lpszDefExt = NULL, 
		LPCTSTR lpszFileName = NULL, 
		DWORD dwFlags = OFN_EXPLORER|OFN_ENABLESIZING| OFN_OVERWRITEPROMPT, 
		LPCTSTR lpszFilter = NULL, 
		CWnd* pParentWnd = NULL); 
	virtual BOOL DoPromptFileName(CString &szFileName, UINT nIDSTitle, DWORD lFlags, 
						  BOOL bOpenFileDialog, CDocTemplate* pTemplate); 
	virtual BOOL DoSave(LPCTSTR lpszPathName, BOOL bReplace); 
 
 
 
protected: 
	void CWin2KFileDialog::AppendFilterSuffix(CString &szFilter, OPENFILENAME& ofn, 
	CDocTemplate* pTemplate, CString* pstrDefaultExt); 
	//{{AFX_MSG(CWin2KFileDialog) 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
 
	CWinApp *m_pApp; 
	CDocument *m_pDoc; 
}; 
 
#endif