Fix for toolbar button size.

This commit is contained in:
Hidenori Takeshima 2000-02-25 21:35:18 +00:00 committed by Alexandre Julliard
parent 45daffaafe
commit 031aef9a91
1 changed files with 5 additions and 0 deletions

View File

@ -517,6 +517,11 @@ TOOLBAR_CalcToolbar (HWND hwnd)
infoPtr->nButtonWidth = infoPtr->nBitmapWidth + 6;
}
if ( infoPtr->cxMin >= 0 && infoPtr->nButtonWidth < infoPtr->cxMin )
infoPtr->nButtonWidth = infoPtr->cxMin;
if ( infoPtr->cxMax >= 0 && infoPtr->nButtonWidth > infoPtr->cxMax )
infoPtr->nButtonWidth = infoPtr->cxMax;
TOOLBAR_WrapToolbar( hwnd, dwStyle );
x = infoPtr->nIndent;