comctl32: TOOLBAR_SetImageList should recalulate toolbar only if it is necessary

Igor Tarasov tarasov.igor at
Sun Apr 19 10:10:59 CDT 2009

Currently TOOLBAR_SetImageList recalculates toolbar and button sizes
even if there is no need in this (when new image list bitmap sizes are
equal to toolbar bitmap sizes). This overwrites button sizes that
might have been defined by application, and thus leads to visual
glitches. Native comctl does not change any toolbar sizes on
TB_SETIMAGELIST when bitmap size is the same.

More details:


More information about the wine-patches mailing list