mirror of
https://github.com/reactos/reactos.git
synced 2024-07-08 05:35:06 +00:00
[COMCTL32]
* Make horizontal separators of vertical toolbars draw. * Apply the same padding to separators as the rest of the buttons. * Fixup some tabs into spaces, for consistency. * Needs to be sent to wine. svn path=/branches/shell-experiments/; revision=62426
This commit is contained in:
parent
1cfa05918e
commit
42bdf3b30f
|
@ -843,16 +843,20 @@ TOOLBAR_DrawButton (const TOOLBAR_INFO *infoPtr, TBUTTON_INFO *btnPtr, HDC hdc,
|
|||
/* empirical tests show that iBitmap can/will be non-zero */
|
||||
/* when drawing the vertical bar... */
|
||||
if ((dwStyle & TBSTYLE_FLAT) /* && (btnPtr->iBitmap == 0) */) {
|
||||
if (dwStyle & CCS_VERT)
|
||||
TOOLBAR_DrawFlatHorizontalSeparator (&rc, hdc, infoPtr);
|
||||
else
|
||||
TOOLBAR_DrawFlatSeparator (&rc, hdc, infoPtr);
|
||||
}
|
||||
else if (btnPtr->fsStyle != BTNS_SEP) {
|
||||
FIXME("Draw some kind of separator: fsStyle=%x\n",
|
||||
btnPtr->fsStyle);
|
||||
}
|
||||
return;
|
||||
if (dwStyle & CCS_VERT) {
|
||||
RECT rcsep = rc;
|
||||
InflateRect(&rcsep, -infoPtr->szPadding.cx, -infoPtr->szPadding.cy);
|
||||
TOOLBAR_DrawFlatHorizontalSeparator (&rcsep, hdc, infoPtr);
|
||||
}
|
||||
else {
|
||||
TOOLBAR_DrawFlatSeparator (&rc, hdc, infoPtr);
|
||||
}
|
||||
}
|
||||
else if (btnPtr->fsStyle != BTNS_SEP) {
|
||||
FIXME("Draw some kind of separator: fsStyle=%x\n",
|
||||
btnPtr->fsStyle);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* get a pointer to the text */
|
||||
|
@ -1662,7 +1666,7 @@ TOOLBAR_LayoutToolbar(TOOLBAR_INFO *infoPtr)
|
|||
if (btnPtr->fsStyle & BTNS_SEP) {
|
||||
if (infoPtr->dwStyle & CCS_VERT) {
|
||||
cy = (btnPtr->iBitmap > 0) ? btnPtr->iBitmap : SEPARATOR_WIDTH;
|
||||
cx = (btnPtr->cx > 0) ? btnPtr->cx : infoPtr->nWidth;
|
||||
cx = (btnPtr->cx > 0) ? btnPtr->cx : infoPtr->nButtonWidth;
|
||||
}
|
||||
else
|
||||
cx = (btnPtr->cx > 0) ? btnPtr->cx :
|
||||
|
|
Loading…
Reference in a new issue