Follow windows' control IDs in "Open/save file" dialogs
Andrey Turkin
pancha at mail.nnov.ru
Tue Feb 7 13:44:41 CST 2006
Hi,
This patch changes Explorer-like common dialogs components control ids
to mimic Windows control ids.
The patch fixes Macromedia Director "import" problem.
ChangeLog:
IShellBrowser sets IShellView window's control id to 5002
IShellView list's control id should be 1, not 2000
The patch is generated against wine 0.9.7 because I have no CVS access.
-------------- next part --------------
diff -cr wine-0.9.7/dlls/commdlg/filedlgbrowser.c wine-0.9.7-p/dlls/commdlg/filedlgbrowser.c
*** wine-0.9.7/dlls/commdlg/filedlgbrowser.c 2006-02-02 17:55:46.000000000 +0300
--- wine-0.9.7-p/dlls/commdlg/filedlgbrowser.c 2006-02-03 14:29:53.000000000 +0300
***************
*** 472,477 ****
--- 472,480 ----
fodInfos->ShellInfos.hwndView = hwndView;
+ /* Set view window control id to 5002 */
+ SetWindowLongA(hwndView, GWLP_ID, lst2);
+
/* Select the new folder in the Look In combo box of the Open file dialog */
FILEDLG95_LOOKIN_SelectItem(fodInfos->DlgInfos.hwndLookInCB,fodInfos->ShellInfos.pidlAbsCurrent);
diff -cr wine-0.9.7/dlls/shell32/shlview.c wine-0.9.7-p/dlls/shell32/shlview.c
*** wine-0.9.7/dlls/shell32/shlview.c 2006-02-02 17:56:02.000000000 +0300
--- wine-0.9.7-p/dlls/shell32/shlview.c 2006-02-03 14:31:50.000000000 +0300
***************
*** 146,152 ****
#define IDM_VIEW_IDW (FCIDM_SHVIEWFIRST + 0x501)
#define IDM_MYFILEITEM (FCIDM_SHVIEWFIRST + 0x502)
! #define ID_LISTVIEW 2000
#define SHV_CHANGE_NOTIFY WM_USER + 0x1111
--- 146,152 ----
#define IDM_VIEW_IDW (FCIDM_SHVIEWFIRST + 0x501)
#define IDM_MYFILEITEM (FCIDM_SHVIEWFIRST + 0x502)
! #define ID_LISTVIEW 1
#define SHV_CHANGE_NOTIFY WM_USER + 0x1111
More information about the wine-patches
mailing list