
VC++这段MFC代码啥意思CFileDialog FileDlg()
CFileDialogFileDlg(FALSE,_T("wav"),_T("HDCapSDK.wav"),OFN_OVERWRITEPROMPT|OFN_HIDEREA...
CFileDialog FileDlg(FALSE, _T("wav"), _T("HDCapSDK.wav"), OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY, strText, this);
而且最后一个参数是this特殊字符 这又是啥意思 展开
而且最后一个参数是this特殊字符 这又是啥意思 展开
3个回答
展开全部
CFileDialog( BOOL bOpenFileDialog, LPCTSTR lpszDefExt = NULL, LPCTSTR lpszFileName = NULL, DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, LPCTSTR lpszFilter = NULL, CWnd* pParentWnd = NULL, DWORD dwSize = 0, BOOL bVistaStyle = TRUE);
Parameters
[in] bOpenFileDialog
The parameter that specifies what type of dialog box to create. Set it to TRUE to construct a File Open dialog box. Set it to FALSE to construct a File Save As dialog box.
[in] lpszDefExt
The default file name extension. If the user does not include an extension in the Filename box, the extension specified by lpszDefExt is automatically appended to the file name. If this parameter is NULL, no extension is appended.
[in] lpszFileName
The initial file name that appears in the Filename box. If NULL, no initial file name appears.
[in] dwFlags
A combination of one or more flags that you can use to customize the dialog box. For a description of these flags, see the OPENFILENAME structure in the Windows SDK. If you modify the m_ofn.Flags structure member, use a bitwise-OR operator in your changes to keep the default behavior intact.
[in] lpszFilter
A series of string pairs that specify filters you can apply to the file. If you specify file filters, only files that match filter criteria will appear in the Files list. See the Remarks section for more information about how to work with file filters.
[in] pParentWnd
A pointer to the parent or owner window of the file dialog box.
[in] dwSize
The size of the OPENFILENAME structure. This value depends on the operating system version. MFC used this parameter to determine the appropriate kind of dialog box to create (for example, new Windows 2000 dialog boxes instead of NT4 dialog boxes). The default size of 0 means that the MFC code will determine the correct dialog box size to use based on the operating system version on which the program is run.
[in] bVistaStyle
Note This parameter is applicable only if you are compiling in Windows Vista.
The parameter that specifies the style of the file dialog. Set it to TRUE to use the new Vista style file dialogs. Otherwise, the old style of dialog boxes will be used. See the Remarks section for more information about compiling under Vista.
其中:
[in] pParentWnd
A pointer to the parent or owner window of the file dialog box.
就是这个this。
是指定这个文件打开或另存为对话框的父窗口或所有者窗口的指针。
Parameters
[in] bOpenFileDialog
The parameter that specifies what type of dialog box to create. Set it to TRUE to construct a File Open dialog box. Set it to FALSE to construct a File Save As dialog box.
[in] lpszDefExt
The default file name extension. If the user does not include an extension in the Filename box, the extension specified by lpszDefExt is automatically appended to the file name. If this parameter is NULL, no extension is appended.
[in] lpszFileName
The initial file name that appears in the Filename box. If NULL, no initial file name appears.
[in] dwFlags
A combination of one or more flags that you can use to customize the dialog box. For a description of these flags, see the OPENFILENAME structure in the Windows SDK. If you modify the m_ofn.Flags structure member, use a bitwise-OR operator in your changes to keep the default behavior intact.
[in] lpszFilter
A series of string pairs that specify filters you can apply to the file. If you specify file filters, only files that match filter criteria will appear in the Files list. See the Remarks section for more information about how to work with file filters.
[in] pParentWnd
A pointer to the parent or owner window of the file dialog box.
[in] dwSize
The size of the OPENFILENAME structure. This value depends on the operating system version. MFC used this parameter to determine the appropriate kind of dialog box to create (for example, new Windows 2000 dialog boxes instead of NT4 dialog boxes). The default size of 0 means that the MFC code will determine the correct dialog box size to use based on the operating system version on which the program is run.
[in] bVistaStyle
Note This parameter is applicable only if you are compiling in Windows Vista.
The parameter that specifies the style of the file dialog. Set it to TRUE to use the new Vista style file dialogs. Otherwise, the old style of dialog boxes will be used. See the Remarks section for more information about compiling under Vista.
其中:
[in] pParentWnd
A pointer to the parent or owner window of the file dialog box.
就是这个this。
是指定这个文件打开或另存为对话框的父窗口或所有者窗口的指针。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询