Commit 304f106a authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Create toolbar with a not zero default size, it allows applications

which check toolbar size before adding buttons to it work.
parent e5a5e727
...@@ -754,14 +754,9 @@ CreateToolbarEx (HWND hwnd, DWORD style, UINT wID, INT nBitmaps, ...@@ -754,14 +754,9 @@ CreateToolbarEx (HWND hwnd, DWORD style, UINT wID, INT nBitmaps,
{ {
HWND hwndTB; HWND hwndTB;
/* If not position is specified then put it at the top */
if ((style & CCS_BOTTOM) == 0) {
style|=CCS_TOP;
}
hwndTB = hwndTB =
CreateWindowExA (0, TOOLBARCLASSNAMEA, "", style|WS_CHILD, 0, 0, 0, 0, CreateWindowExA(0, TOOLBARCLASSNAMEA, NULL, style|WS_CHILD, 0,0,100,30,
hwnd, (HMENU)wID, 0, NULL); hwnd, (HMENU)wID, COMCTL32_hModule, NULL);
if(hwndTB) { if(hwndTB) {
TBADDBITMAP tbab; TBADDBITMAP tbab;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment