mirror of
https://github.com/reactos/reactos.git
synced 2024-08-07 19:58:21 +00:00
- Support for RBBS_HIDETITLE style.
svn path=/trunk/; revision=8399
This commit is contained in:
parent
3c84f18b66
commit
30830340a8
|
@ -985,7 +985,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);
|
||||
|
@ -1131,7 +1131,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);
|
||||
|
@ -2030,7 +2030,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;
|
||||
|
|
|
@ -1596,6 +1596,10 @@ extern "C" {
|
|||
#define RBBS_HIDDEN 8
|
||||
#define RBBS_NOVERT 16
|
||||
#define RBBS_FIXEDBMP 32
|
||||
#if (_WIN32_IE >= 0x0501)
|
||||
#define RBBS_HIDETITLE 0x400
|
||||
#define RBBS_TOPALIGN 0x800
|
||||
#endif /* _WIN32_IE >= 0x0501 */
|
||||
#define RBBIM_STYLE 1
|
||||
#define RBBIM_COLORS 2
|
||||
#define RBBIM_TEXT 4
|
||||
|
|
Loading…
Reference in a new issue