Ignore iBitmap width when drawing flat toolbar.

This commit is contained in:
Rob Farnum 2000-07-15 19:45:43 +00:00 committed by Alexandre Julliard
parent ddd1a73675
commit e63a40ee96

View File

@ -227,7 +227,12 @@ TOOLBAR_DrawButton (HWND hwnd, TBUTTON_INFO *btnPtr, HDC hdc)
/* separator */
if (btnPtr->fsStyle & TBSTYLE_SEP) {
if ((dwStyle & TBSTYLE_FLAT) && (btnPtr->iBitmap == 0))
/* with the FLAT style, iBitmap is the width and has already */
/* been taken into consideration in calculating the width */
/* so now we need to draw the vertical separator */
/* empirical tests show that iBitmap can/will be non-zero */
/* when drawing the vertical bar... */
if ((dwStyle & TBSTYLE_FLAT) /* && (btnPtr->iBitmap == 0) */)
TOOLBAR_DrawFlatSeparator (&rc, hdc);
return;
}