Fixed toolbar bitmap size handling.

This commit is contained in:
Martin Fuchs 2000-04-24 17:34:42 +00:00 committed by Alexandre Julliard
parent 87d224ac39
commit c37a639e33
2 changed files with 4 additions and 4 deletions

View File

@ -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 */

View File

@ -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;
}