MFC those secret files saved settings dialog

Moving from CSDN 2015-5-14

CFileDialog::CFileDialog( BOOL bOpenFileDialog, 
LPCTSTR lpszDefExt = NULL, 
LPCTSTR lpszFileName = NULL, 
DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, 
LPCTSTR lpszFilter = NULL 
CWnd* pParentWnd = NULL );

 

Parameters meaning is as follows: 

bOpenFileDialog Open dialog box is displayed as TRUE, FALSE for the save file dialog box is displayed. 
lpszDefExt specify a default file extension. 
lpszFileName specify the default file name. 
dwFlags specify certain style. 
lpszFilter is the most important parameter, which you can choose the file type and specify the appropriate extension. Format parameters such as: 
"Chart Files (* .xlc) | * .xlc | Worksheet Files (* .xls) | * .xls | the Data Files (. * .Xlc; * XLS) | * .xlc; * .xls | All . files (. * *) | * * || "; with between file types and extensions Description | separated between the extension of the same file types can be used; split, with each file type between the | separated by the end of | | specified. 
pParentWnd parent window pointer.

 

Guess you like

Origin www.cnblogs.com/arxive/p/11748261.html