From 4b8b200e802a19d99ee0920d6c6813f4c6234328 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Mon, 9 Aug 2004 15:08:23 +0000 Subject: [PATCH] Dmitry Timoshkov Create toolbar with a not zero default size, it allows applications which check toolbar size before adding buttons to it work. svn path=/trunk/; revision=10444 --- reactos/lib/comctl32/commctrl.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/reactos/lib/comctl32/commctrl.c b/reactos/lib/comctl32/commctrl.c index 9ebd479afe1..a2af02ae34b 100644 --- a/reactos/lib/comctl32/commctrl.c +++ b/reactos/lib/comctl32/commctrl.c @@ -754,14 +754,9 @@ CreateToolbarEx (HWND hwnd, DWORD style, UINT wID, INT nBitmaps, { HWND hwndTB; - /* If not position is specified then put it at the top */ - if ((style & CCS_BOTTOM) == 0) { - style|=CCS_TOP; - } - hwndTB = - CreateWindowExA (0, TOOLBARCLASSNAMEA, "", style|WS_CHILD, 0, 0, 0, 0, - hwnd, (HMENU)wID, 0, NULL); + CreateWindowExA(0, TOOLBARCLASSNAMEA, NULL, style|WS_CHILD, 0,0,100,30, + hwnd, (HMENU)wID, COMCTL32_hModule, NULL); if(hwndTB) { TBADDBITMAP tbab;