Fix button text placement for disabled buttons (see Winzip 8.0).

This commit is contained in:
Mike McCormack 2001-07-02 17:58:31 +00:00 committed by Alexandre Julliard
parent 96c0ed6634
commit aa62953b31
1 changed files with 3 additions and 0 deletions

View File

@ -226,6 +226,9 @@ TOOLBAR_DrawString (TOOLBAR_INFO *infoPtr, TBUTTON_INFO *btnPtr,
rcText.top += infoPtr->nBitmapHeight; rcText.top += infoPtr->nBitmapHeight;
} }
} }
else {
rcText.top += infoPtr->nBitmapHeight;
}
if (nState & (TBSTATE_PRESSED | TBSTATE_CHECKED)) if (nState & (TBSTATE_PRESSED | TBSTATE_CHECKED))
OffsetRect (&rcText, 1, 1); OffsetRect (&rcText, 1, 1);