不行,除非用hook,呵呵,或者自己写一个这样的对话框,直接改是不行的.
解决方案 »
- MFC程序独立运行正常,作为模块嵌入别的程序中,控件加载很慢是什么原因
- _initterm_e( __xi_a, __xi_z ) != 0 函数出错原因
- 请大家帮忙看一下对话框加载时的界面显示问题?
- bcg的tabview的问题,高手请帮忙!
- 初学者问题:错在哪里?----谢谢!
- 还是键PAN消息的问题
- 求小波包去噪的VC++控制台应用程序 最好有解释 不要matlab的!谢谢!
- MSXML用DTD校验XML出现DTD禁用的问题
- 用网卡检测IP包的类型,该用什么类,什么函数?盼赐教!!!谢谢
- 请教高手:VC中如何解析RTF文件?
- 请问:资源管理器中左边部分的最上级的“桌面”怎么得到?谢谢
- 噩梦:MFC
HWND hwndOwner; // see below
LPCITEMIDLIST pidlRoot; // see below
LPSTR pszDisplayName; // see below
LPCSTR lpszTitle; // see below
UINT ulFlags; // see below
BFFCALLBACK lpfn; //WHAT IS THIS!!!!
LPARAM lParam; // see below
int iImage; // see below
} BROWSEINFO, *PBROWSEINFO, *LPBROWSEINFO; Specifies an application-defined callback function used with the SHBrowseForFolder function. The browse dialog box calls this function to notify it about events. The BFFCALLBACK type defines a pointer to this callback function.int BrowseCallbackProc( HWND hwnd,
UINT uMsg,
LPARAM lParam,
LPARAM lpData
);
ParametershwndHandle to the browse dialog box. The callback function can send the following messages to this window:BFFM_ENABLEOK Enables the OK button if the wParam parameter is nonzero or disables it if wParam is zero.
BFFM_SETSELECTION Selects the specified folder. The lParam parameter is the PIDL of the folder to select if wParam is FALSE, or it is the path of the folder otherwise.
BFFM_SETSTATUSTEXT Sets the status text to the null-terminated string specified by the lParam parameter.
uMsgValue identifying the event. This parameter can be one of the following values:BFFM_INITIALIZED The browse dialog box has finished initializing. lpData is NULL.
BFFM_SELCHANGED The selection has changed. lpData is a pointer to the item identifier list for the newly selected folder.
lParamMessage-specific value. For more information, see the description of uMsg.lpDataApplication-defined value that was specified in the lParam member of the BROWSEINFO structure. Return ValuesReturns zero.变通一下。
BFFM_INITIALIZED
BFFM_SELCHANGED 我都使用过,这些事件都不是在OK被按下是触发的,
BFFM_VALIDATEFAILED 可以在OK被按下是触发,但是要求这个对话框有Edit Box (BIF_EDITBOX |BIF_VALIDATE)。而我的对话框不能有这个Edit Box。
谢谢,虽然这样容易实现, 不过要求不是这样啊。