From 473a88661e46fb4e7e7a2a4f51bfa15b023fd51e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Maxime=20Belleng=C3=A9?= Date: Wed, 26 Mar 2003 23:36:25 +0000 Subject: [PATCH] Fix the lookin combobox overlapping the toolbar in open/save file dialog. --- dlls/commdlg/filedlg95.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dlls/commdlg/filedlg95.c b/dlls/commdlg/filedlg95.c index cab080022be..d25c092aded 100644 --- a/dlls/commdlg/filedlg95.c +++ b/dlls/commdlg/filedlg95.c @@ -1030,6 +1030,7 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd) }; TBADDBITMAP tba[2]; RECT rectTB; + RECT rectlook; FileOpenDlgInfos *fodInfos = (FileOpenDlgInfos *) GetPropA(hwnd,FileOpenDlgInfosStr); tba[0].hInst = HINST_COMMCTRL; @@ -1055,10 +1056,18 @@ static LRESULT FILEDLG95_InitControls(HWND hwnd) fodInfos->DlgInfos.hwndFileTypeCB = GetDlgItem(hwnd,IDC_FILETYPE); fodInfos->DlgInfos.hwndLookInCB = GetDlgItem(hwnd,IDC_LOOKIN); + GetWindowRect( fodInfos->DlgInfos.hwndLookInCB,&rectlook); + MapWindowPoints( 0, hwnd,(LPPOINT)&rectlook,2); + /* construct the toolbar */ GetWindowRect(GetDlgItem(hwnd,IDC_TOOLBARSTATIC),&rectTB); MapWindowPoints( 0, hwnd,(LPPOINT)&rectTB,2); + rectTB.right = rectlook.right + rectTB.right - rectTB.left; + rectTB.bottom = rectlook.top - 1 + rectTB.bottom - rectTB.top; + rectTB.left = rectlook.right; + rectTB.top = rectlook.top-1; + fodInfos->DlgInfos.hwndTB = CreateWindowExA(0, TOOLBARCLASSNAMEA, NULL, WS_CHILD | WS_GROUP | TBSTYLE_TOOLTIPS | CCS_NODIVIDER | CCS_NORESIZE, 0, 0, 150, 26, hwnd, (HMENU) IDC_TOOLBAR, COMMDLG_hInstance32, NULL); -- 2.11.4.GIT