7 this->font.lfHeight = 25;
8 this->font.lfWidth = 0;
9 this->font.lfEscapement = 0;
10 this->font.lfOrientation = 0;
11 this->font.lfWeight = 500;
12 this->font.lfItalic = 0;
13 this->font.lfUnderline = 0;
14 this->font.lfStrikeOut = 0;
15 this->font.lfCharSet = RUSSIAN_CHARSET;
16 this->font.lfOutPrecision = 0;
17 this->font.lfClipPrecision = 0;
18 this->font.lfQuality = 0;
19 this->font.lfPitchAndFamily = 0;
20 wcscpy_s(this->font.lfFaceName, TEXT(
"Arial"));
21 this->COLOR = RGB(0, 0, 0);
29 this->
display(X, Y, 0, 0, TEXT);
38 hfont = ::CreateFontIndirect(&this->font);
39 SelectObject(this->
hdc, hfont);
40 SetBkMode(this->
hdc, TRANSPARENT);
41 return TextOutW(this->
hdc, X1, Y1, TEXT, wcslen(TEXT));
47 return this->
display(this->X, this->Y, 0, 0, this->TEXT);
53 SetTextColor(this->
hdc,this->COLOR);
59 this->font.lfWeight = w;
65 this->font.lfHeight = h;
71 this->font.lfWidth = w;
Button interface class Provide interface for creating/removing custom text.
Text * SetColor(COLORREF color)
Text * SetSymbolWidth(int w)
bool display(int X1, int Y1, int X2, int Y2, WCHAR *TEXT) override