Create toolbar with a not zero default size
Dmitry Timoshkov
dmitry at baikal.ru
Sun Aug 1 02:50:42 CDT 2004
Hello,
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
Create toolbar with a not zero default size, it allows applications
which check toolbar size before adding buttons to it work.
--- cvs/hq/wine/dlls/comctl32/commctrl.c 2004-06-23 16:06:04.000000000 +0900
+++ wine/dlls/comctl32/commctrl.c 2004-08-01 16:30:28.000000000 +0900
@@ -754,14 +754,9 @@ CreateToolbarEx (HWND hwnd, DWORD style,
{
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;
More information about the wine-patches
mailing list