shell32: changenotify

Ulrich Czekalla ulrich.czekalla at utoronto.ca
Sun Feb 1 11:07:30 CST 2004


With this patch the shellview gets updated when a new folder is created in
the file dialog.

ChangeLog:
   Ulrich Czekalla <ulrich at codeweavers.com>
   - Fix SHChangeNotify to send correct lParam and wParam values
   - Make ShellView's SHChangeNotifyRegister be recursive so that
   will get all notifications 
-------------- next part --------------
Index: dlls/shell32/shlview.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/shlview.c,v
retrieving revision 1.89
diff -u -w -r1.89 shlview.c
--- dlls/shell32/shlview.c	18 Jan 2004 23:17:32 -0000	1.89
+++ dlls/shell32/shlview.c	1 Feb 2004 16:49:58 -0000
@@ -670,7 +670,7 @@
 	if (ppf2)
 	{
 	  IPersistFolder2_GetCurFolder(ppf2, (LPITEMIDLIST*)&ntreg.pidl);
-	  ntreg.fRecursive = FALSE;
+	  ntreg.fRecursive = TRUE;
 	  This->hNotify = SHChangeNotifyRegister(This->hWnd, SHCNF_IDLIST, SHCNE_ALLEVENTS, SHV_CHANGE_NOTIFY, 1, &ntreg);
 	  SHFree((LPITEMIDLIST)ntreg.pidl);
 	  IPersistFolder2_Release(ppf2);
Index: dlls/shell32/changenotify.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/changenotify.c,v
retrieving revision 1.29
diff -u -w -r1.29 changenotify.c
--- dlls/shell32/changenotify.c	27 Jan 2004 00:01:43 -0000	1.29
+++ dlls/shell32/changenotify.c	1 Feb 2004 16:50:06 -0000
@@ -388,7 +388,8 @@
                wEventId ),wEventId );
 
         ptr->wSignalledEvent |= wEventId;
-        SendMessageA(ptr->hwnd, ptr->uMsg, (WPARAM)ptr, GetCurrentProcessId());
+
+        SendMessageA(ptr->hwnd, ptr->uMsg, (WPARAM)Pidls, wEventId);
 
         TRACE("notifying %s, event %s(%lx) after\n", NodeName( ptr ), DumpEvent(
                 wEventId ),wEventId );


More information about the wine-patches mailing list