To define the required font in the static control I use the CreateFont() function:
HFONT hNewFont = CreateFont(
16,
0,
0,
0,
FW_DONTCARE,
0,
0,
0,
DEFAULT_CHARSET,
OUT_DEFAULT_PRECIS,
CLIP_STROKE_PRECIS,
CLEARTYPE_QUALITY,
FF_MODERN | FIXED_PITCH,
"Tahoma");
and set it for control:
SendMessage(hStatic,WM_SETFONT,(WPARAM)hNewFont,true);
Ok, it's works fine.
Created font have white shadow or contour, I don't know.
On a white background everything looks good:
<img src="http://s017.radikal.ru/i423/1306/5b/0aaf4cd215c8.png">
, but on the black background - it is visible white shadow from text:
<img src="http://s019.radikal.ru/i611/1306/cb/221dfed5786e.png"></img>
So how to disable or to cut this white text shadow?