不行,除非用hook,呵呵,或者自己写一个这样的对话框,直接改是不行的.

解决方案 »

  1.   

    不行,除非用hook,呵呵,或者自己写一个这样的对话框,直接改是不行的.
      

  2.   

    有没有谁做过动态按钮?Windows是如何关联消息和对应的函数的?
      

  3.   

    mfc之间的消息传递机制建议你买一本深入浅出mfc来看看吧,绝对是一本好书,简浅易懂,看完就会深入了解了消息映射的内部机理了。
      

  4.   

    用hook的话你要设立一个鼠标的hook,然后不断的监测当前窗口局柄,如果是目标按钮,就拦截它的单击事件,进行你的操作
      

  5.   

    我晕....想不到各位前辈那么野蛮。看看 typedef struct _browseinfo {  
        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.变通一下。
      

  6.   

    我也想使用kimryo(轻*轻*前*轻*重)的方法,但我不知道如何进行处理,
    BFFM_INITIALIZED 
    BFFM_SELCHANGED 我都使用过,这些事件都不是在OK被按下是触发的,
    BFFM_VALIDATEFAILED 可以在OK被按下是触发,但是要求这个对话框有Edit Box (BIF_EDITBOX |BIF_VALIDATE)。而我的对话框不能有这个Edit Box。
      

  7.   

    在文件选择改变(处理BFFM_SELCHANGED)的时候发BFFM_ENABLEOK把IDOK禁用如何?
      

  8.   

    To: jiangsheng(蒋晟)
    谢谢,虽然这样容易实现, 不过要求不是这样啊。