DrawThemeText always draws black text
- From: "Lars C. Hassing" <lars.c.hassing@xxxxxxxxx>
- Date: 23 Feb 2007 00:18:07 -0800
The DrawThemeText documentation says:
"Draws text using the color and font defined by the visual style."
So I would expect a caption text in the default Windows XP blue theme
to be white with black shadow.
But it is black with black shadow.
If I use MXCS_INACTIVE the shadow correctly disappears but the text is
still black (not white (grey)).
The font, however, seems to be OK.
DrawThemeBackground (hTheme, hDC, WP_MAXCAPTION, MXCS_ACTIVE, &r,
NULL);
DrawThemeText (hTheme, hDC, WP_MAXCAPTION, MXCS_ACTIVE, L"My
Caption", -1, DT_VCENTER | DT_SINGLELINE | DT_LEFT | DT_NOPREFIX, 0,
&r);
I have tried SetTextColor with no luck.
/Lars
.
- Follow-Ups:
- Re: DrawThemeText always draws black text
- From: Christian ASTOR
- Re: DrawThemeText always draws black text
- Prev by Date: Re: SPY++ very slow on 64-bit
- Next by Date: Re: checking the folder path in text box
- Previous by thread: checking the folder path in text box
- Next by thread: Re: DrawThemeText always draws black text
- Index(es):
Relevant Pages
|