commdlg #1: Send CDN_FOLDERCHANGE

Huw D M Davies h.davies1 at physics.ox.ac.uk
Fri Jun 3 09:45:03 CDT 2005


        Huw Davies <huw at codeweavers.com>
        Send CDN_FOLDERCHANGE whenever we change folder.
-- 
Huw Davies
huw at codeweavers.com
Index: dlls/commdlg/filedlg.c
===================================================================
RCS file: /home/wine/wine/dlls/commdlg/filedlg.c,v
retrieving revision 1.104
diff -u -p -r1.104 filedlg.c
--- dlls/commdlg/filedlg.c	26 May 2005 12:23:57 -0000	1.104
+++ dlls/commdlg/filedlg.c	3 Jun 2005 14:43:08 -0000
@@ -2220,6 +2220,7 @@ static BOOL FILEDLG95_SHELL_UpFolder(HWN
                                           NULL,
                                           SBSP_PARENT)))
   {
+    SendCustomDlgNotificationMessage(hwnd, CDN_FOLDERCHANGE);
     return TRUE;
   }
   return FALSE;
@@ -2241,6 +2242,7 @@ static BOOL FILEDLG95_SHELL_BrowseToDesk
 
   SHGetSpecialFolderLocation(0,CSIDL_DESKTOP,&pidl);
   hres = IShellBrowser_BrowseObject(fodInfos->Shell.FOIShellBrowser, pidl, SBSP_ABSOLUTE);
+  SendCustomDlgNotificationMessage(hwnd, CDN_FOLDERCHANGE);
   COMDLG32_SHFree(pidl);
   return SUCCEEDED(hres);
 }
@@ -2692,6 +2694,7 @@ static BOOL FILEDLG95_LOOKIN_OnCommand(H
                                               tmpFolder->pidlItem,
                                               SBSP_ABSOLUTE)))
       {
+        SendCustomDlgNotificationMessage(hwnd, CDN_FOLDERCHANGE);
         return TRUE;
       }
       break;
@@ -3363,8 +3366,8 @@ static BOOL BrowseSelectedFolder(HWND hw
                                    ' ','n','o','t',' ','e','x','i','s','t',0};
                MessageBoxW( hwnd, notexist, fodInfos->title, MB_OK | MB_ICONEXCLAMATION );
           }
-
-         bBrowseSelFolder = TRUE;
+          bBrowseSelFolder = TRUE;
+          SendCustomDlgNotificationMessage(hwnd,CDN_FOLDERCHANGE);
       }
       COMDLG32_SHFree( pidlSelection );
   }



More information about the wine-patches mailing list