From c7b806114de13919ef858dbcb4e9c9641b1c82ea Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Wed, 14 Aug 2002 21:03:55 +0000 Subject: [PATCH] Make dialog IDs "Browse for Folder" compatible with IE. --- dlls/shell32/brsfolder.c | 4 ++-- dlls/shell32/shres.rc | 6 +++--- dlls/shell32/shresdef.h | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dlls/shell32/brsfolder.c b/dlls/shell32/brsfolder.c index c1dd646c889..e4fbc794706 100644 --- a/dlls/shell32/brsfolder.c +++ b/dlls/shell32/brsfolder.c @@ -256,7 +256,8 @@ static LRESULT MsgNotify(HWND hWnd, UINT CtlID, LPNMHDR lpnmh) */ static BOOL WINAPI BrsFolderDlgProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam ) -{ TRACE("hwnd=%i msg=%i 0x%08x 0x%08lx\n", hWnd, msg, wParam, lParam ); +{ + TRACE("hwnd=%08x msg=%04x 0x%08x 0x%08lx\n", hWnd, msg, wParam, lParam ); switch(msg) { case WM_INITDIALOG: @@ -299,7 +300,6 @@ static BOOL WINAPI BrsFolderDlgProc( HWND hWnd, UINT msg, WPARAM wParam, case IDCANCEL: EndDialog(hWnd, 0); return TRUE; - break; } break; case BFFM_SETSTATUSTEXTA: diff --git a/dlls/shell32/shres.rc b/dlls/shell32/shres.rc index f864f846b10..152e834d6f8 100644 --- a/dlls/shell32/shres.rc +++ b/dlls/shell32/shres.rc @@ -108,15 +108,15 @@ BEGIN END SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192 -STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU -CAPTION "Choose a Directory:" +STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME | DS_SETFONT | DS_3DLOOK +CAPTION "Browse for Folder" FONT 8, "Helv" { DEFPUSHBUTTON "OK", 1, 80, 176, 50, 12, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP PUSHBUTTON "Cancel", 2, 134, 176, 50, 12, WS_GROUP | WS_TABSTOP LTEXT "", IDD_TITLE, 4, 4, 180, 12 LTEXT "", IDD_STATUS, 4, 25, 180, 12 - CONTROL "Tree1",IDD_TREEVIEW,"SysTreeView32", + CONTROL "", IDD_TREEVIEW, "SysTreeView32", TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT | WS_BORDER | WS_TABSTOP, 4, 40, 180, 120 diff --git a/dlls/shell32/shresdef.h b/dlls/shell32/shresdef.h index 461907c2789..46615bb03d4 100644 --- a/dlls/shell32/shresdef.h +++ b/dlls/shell32/shresdef.h @@ -48,8 +48,8 @@ #define IDS_DELETEMULTIPLE_TEXT 35 /* browse for folder dialog box */ -#define IDD_STATUS 97 -#define IDD_TITLE 98 -#define IDD_TREEVIEW 99 +#define IDD_STATUS 0x3743 +#define IDD_TITLE 0x3742 +#define IDD_TREEVIEW 0x3741 #endif