[resend] rebar.c: RBBS_HIDETITLE support
Filip Navara
xnavara at volny.cz
Fri Mar 12 14:07:23 CST 2004
Hello,
I'm sending this patch second time. Is there any reason why it wasn't
commited previously or it just got lost?
Regards,
Filip
Changelog:
* dlls/comctl32/rebar.c: Filip Navara <xnavara at volny.cz>
Support for RBBS_HIDETITLE style.
--- comctl32/rebar.c 2004/02/17 22:35:27 1.6
+++ comctl32/rebar.c 2004/02/26 13:45:44 1.7
@@ -985,7 +985,7 @@ REBAR_CalcHorzBand (REBAR_INFO *infoPtr,
}
/* text is visible */
- if (lpBand->fStatus & HAS_TEXT) {
+ if ((lpBand->fStatus & HAS_TEXT) && !(lpBand->fStyle &
RBBS_HIDETITLE)) {
lpBand->fDraw |= DRAW_TEXT;
lpBand->rcCapText.right = max(lpBand->rcCapText.left,
lpBand->rcCapText.right-REBAR_POST_TEXT);
@@ -1131,7 +1131,7 @@ REBAR_CalcVertBand (REBAR_INFO *infoPtr,
}
/* text is visible */
- if (lpBand->fStatus & HAS_TEXT) {
+ if ((lpBand->fStatus & HAS_TEXT) && !(lpBand->fStyle &
RBBS_HIDETITLE)) {
lpBand->fDraw |= DRAW_TEXT;
lpBand->rcCapText.bottom = max(lpBand->rcCapText.top,
lpBand->rcCapText.bottom);
@@ -2030,7 +2030,8 @@ REBAR_ValidateBand (REBAR_INFO *infoPtr,
}
/* text is visible */
- if ((lpBand->fMask & RBBIM_TEXT) && (lpBand->lpText)) {
+ if ((lpBand->fMask & RBBIM_TEXT) && (lpBand->lpText) &&
+ !(lpBand->fStyle & RBBS_HIDETITLE)) {
HDC hdc = GetDC (0);
HFONT hOldFont = SelectObject (hdc, infoPtr->hFont);
SIZE size;
More information about the wine-patches
mailing list