Commit ccd428e5 authored by Filip Navara's avatar Filip Navara Committed by Alexandre Julliard

Support for RBBS_HIDETITLE style.

parent 7e8732c8
......@@ -978,7 +978,7 @@ REBAR_CalcHorzBand (REBAR_INFO *infoPtr, UINT rstart, UINT rend, BOOL notify)
}
/* 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);
......@@ -1124,7 +1124,7 @@ REBAR_CalcVertBand (REBAR_INFO *infoPtr, UINT rstart, UINT rend, BOOL notify)
}
/* 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);
......@@ -2024,7 +2024,8 @@ REBAR_ValidateBand (REBAR_INFO *infoPtr, REBAR_BAND *lpBand)
}
/* 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment