Commit c37a639e authored by Martin Fuchs's avatar Martin Fuchs Committed by Alexandre Julliard

Fixed toolbar bitmap size handling.

parent 87d224ac
......@@ -647,14 +647,14 @@ CreateToolbarEx (HWND hwnd, DWORD style, UINT wID, INT nBitmaps,
/* set bitmap and button size */
/*If CreateToolbarEx receive 0, windows set default values*/
if (dyBitmap < 0)
dyBitmap = 16;
dyBitmap = 15;
if (dxBitmap < 0)
dxBitmap = 16;
SendMessageA (hwndTB, TB_SETBITMAPSIZE, 0,
MAKELPARAM((WORD)dyBitmap, (WORD)dxBitmap));
MAKELPARAM((WORD)dxBitmap, (WORD)dyBitmap));
SendMessageA (hwndTB, TB_SETBUTTONSIZE, 0,
MAKELPARAM((WORD)dyButton, (WORD)dxButton));
MAKELPARAM((WORD)dxButton, (WORD)dyButton));
/* add bitmaps */
......
......@@ -884,7 +884,7 @@ TOOLBAR_CustomizeDialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
if (infoPtr)
lpmis->itemHeight = infoPtr->nBitmapHeight + 8;
else
lpmis->itemHeight = 16 + 8; /* default height */
lpmis->itemHeight = 15 + 8; /* default height */
return TRUE;
}
......
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