Revert change for resizing buttons.

This commit is contained in:
Vitaliy Margolen 2003-05-13 23:38:01 +00:00 committed by Alexandre Julliard
parent 9512ba5322
commit d8d12a0bca
1 changed files with 7 additions and 3 deletions

View File

@ -29,7 +29,6 @@
*
*
* TODO:
* - A little bug in TOOLBAR_DrawMasked()
* - Button wrapping (under construction).
* - Messages.
* - Notifications (under construction).
@ -67,6 +66,7 @@
#include "winuser.h"
#include "wine/unicode.h"
#include "commctrl.h"
#include "imagelist.h"
#include "comctl32.h"
#include "wine/debug.h"
@ -3952,8 +3952,12 @@ TOOLBAR_SetBitmapSize (HWND hwnd, WPARAM wParam, LPARAM lParam)
infoPtr->nBitmapWidth = (INT)LOWORD(lParam);
infoPtr->nBitmapHeight = (INT)HIWORD(lParam);
if (himlDef)
ImageList_SetIconSize(himlDef, infoPtr->nBitmapWidth, infoPtr->nBitmapHeight);
/* uses image list internals directly */
if (himlDef) {
himlDef->cx = infoPtr->nBitmapWidth;
himlDef->cy = infoPtr->nBitmapHeight;
}
return TRUE;
}