You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# pragma once
//////////////////////////////////////////////////////////////////////////////
//文件 FileDialogEx.cpp
//主要功能:
//
//程序编写: 2005-12-07
/////////////////////////////////////////////////////////////////////////////
// CFileDialogEx
class AFX_EXT_CLASS CFileDialogEx : public CFileDialog
{
DECLARE_DYNAMIC ( CFileDialogEx )
public :
CFileDialogEx ( BOOL bOpenFileDialog , // 对于 FileOpen 为 TRUE, 对于 FileSaveAs 为 FALSE
LPCTSTR lpszDefExt = NULL ,
LPCTSTR lpszFileName = NULL ,
DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT | OFN_EXPLORER ,
LPCTSTR lpszFilter = NULL ,
CWnd * pParentWnd = NULL ,
DWORD dwSize = 0 ,
BOOL bVistaStyle = TRUE ) ;
virtual ~ CFileDialogEx ( ) ;
void SetFilterExt ( LPCTSTR lpszFilterExt ) ;
CString GetFilterExt ( int nIndex ) ;
int GetFilterExtIndex ( CString strExt ) ;
int GetFilterIndex ( void ) ; //获得选择的过滤器索引( 基于0)
void SetFilterIndex ( int nIndex ) ;
protected :
DECLARE_MESSAGE_MAP ( )
CStringArray m_strFilterExt ;
virtual void OnTypeChange ( ) ;
} ;