在CFileDialog中创建的打开对话框能否将左下角的"打开"按钮的名改为其它的名字?
解决方案 »
- WNetEnumResource有时成功有时失败
- 有个进程的问题
- 怎样去掉CWebBrowser2空间显示网页的滚动条
- 我一个服务器同时接受到很多个用户的认证请求(得到用户名和密码),然后把用户名密码发给认证服务器。因为是远程认证,所
- vc左边的classwizzad里面看不到CMainFrame是怎么会事 啊?
- 请教ODBC和DataGrid问题(给分)
- 请专长界面编程的GG推荐简单好用的皮肤控件!
- 当出现Link连接错误时,如何确定缺少什么头文件或库文件??
- 最小化窗体发送什么消息?
- 兄弟正在学习编写动态连接库(Dll),但是不知道如何下手,手边的资料也讲的不太清楚,请问!
- 如何使一个消息在OnDraw()函数之前执行
- 怎么添加一个标签视图?
CFileDialog Overview | Class Members | Hierarchy Chart | CDM_SETCONTROLTEXT | CFileDialog::HideControl
Call this member function to set the text for the specified control in an Explorer-style Open or Save As common dialog box.void SetControlText(
int nID,
LPCSTR lpsz
);
Parameters
nID
The ID of the control for which to set the text.
lpsz
A pointer to the string containing the text to set for the control.
Res
The dialog box must have been created with the OFN_EXPLORER style; otherwise, the function will fail with an assertion.
And what is the ID?
那个按钮应该就是 IDOK
====================================================
u can use OFN_EXPLORER in the constructor like this:CFileDialog dlg( TRUE, NULL, NULL,
OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT | OFN_EXPLORER );And what is the ID?
====================================================
ID_OK