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特殊字符 这又是啥意思
展开
 我来答
lhf118
2013-12-20 · TA获得超过1611个赞
知道小有建树答主
回答量:633
采纳率:100%
帮助的人:511万
展开全部
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。
是指定这个文件打开或另存为对话框的父窗口或所有者窗口的指针。
匿名用户
2013-12-20
展开全部
打开后缀名为wav的文件对话框,this是父窗口指针
追问
前辈 你能告诉我这函数的每一个变量在这函数里代表什么么?类似(句柄,偏移量(低位), 偏移量(高位)这样?谢谢了!
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
allan383028317
2013-12-20 · TA获得超过295个赞
知道答主
回答量:107
采纳率:0%
帮助的人:20万
展开全部

u

已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(1)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式