83 public CWindowImpl<CODStatic, CStatic>,
84 public COwnerDraw<CODStatic>,
85 public CThemeImpl<CODStatic>
91 DECLARE_WND_SUPERCLASS(_T(
"CODStatic"), CStatic::GetWndClassName())
151 BOOL OnEraseBkgnd(CDCHandle dc);
152 void DrawItem(LPDRAWITEMSTRUCT lp);
153 void OnSysColorChange();
158 UINT GetTextFormat();
159 void UpdateBackBrush();
161 int GetVertEdgeWidth();
162 int GetHorzEdgeHeight();
163 int GetEdgeOffset(
int metric);
165 void PrepareGDIStuff();
166 void DestroyGDIStuff();
168 void DrawEdge(CRect r);
173 bool m_bPathEllipsis;
180 COLORREF m_clrBackColor;
181 COLORREF m_clrTextColor;
189 bool m_bBtnFaceBkgnd;
191 bool m_bUpdateContent;
193 HBRUSH m_hbrBackBrush;
199 CHAIN_MSG_MAP(CThemeImpl<CODStatic>)
200 MSG_WM_SYSCOLORCHANGE(OnSysColorChange)
201 MSG_WM_THEMECHANGED(OnSysColorChange)
202 MSG_WM_ERASEBKGND(OnEraseBkgnd)
203 CHAIN_MSG_MAP_ALT(COwnerDraw<CODStatic>, 1)
204 DEFAULT_REFLECTION_HANDLER()
void SetEdgeStyle(CEdgeStyle style)
The EdgeStyle state determines the type of graphic boundary indicator surrounding the control in it's...
void SetHorzTextAlignment(CHorzAlignment value)
The CHorzAlignment member variable state will result in either the DT_CENTER, DT_LEFT or DT_RIGHT fla...
void SetVerticalMargin(int margin)
Sets top and bottom text margin inside window edge. A call to UpdateContent may be required to make c...
COLORREF GetBackColor() const
Default: COLOR_BTNFACE.
COLORREF GetTextColor() const
Default: COLOR_WINDOWTEXT.
int GetVerticalMargin() const
Default: 0.
bool GetMultilineEnabled() const
Default: false.
void SetCaption(LPCTSTR text)
Set a new string to display. A call to UpdateContent may be required to make the new caption visible...
void SetMultilineEnabled(bool value)
If false, the DT_SINGLELINE flag will be included in calls to DrawText (or DrawThemeText). A call to UpdateContent may be required to make changes visible.
CEdgeStyle
Style of edge defining control boundaries.
void SetBtnFaceBkgnd(bool value)
Set or clear the UseBtnFaceBkgnd state. A call to UpdateContent may be required to make the new state...
CVertAlignment GetVertTextAlignment() const
Default: CVertAlignment::vaLeft.
CVertAlignment
Control vertical placement of text in control window.
CHorzAlignment GetHorzTextAlignment() const
Default: CHorzAlignment::haMiddle.
void SetVertTextAlignment(CVertAlignment value)
The CVertAlignment member variable state will result in either the DT_BOTTOM, DT_TOP or DT_VCENTER fl...
bool GetPathEllipsisEnabled() const
Default: false.
An owner-drawn CStatic descendant, providing custom background and text colors and edge styles...
void SetTextColor(COLORREF value)
Set a new text color. A call to UpdateContent may be required to make the new color visible...
CThemedBackgroundStyle GetThemedBackgroundStyle() const
Default: tbMainInstructionPane.
void SetThemedTextStyle(CThemedTextStyle val)
Set the ThemedTextStyle to a new value.
void SetThemedBackgroundStyle(CThemedBackgroundStyle val)
Set the ThemedBackgroundStyle to a new value.
int GetHorizontalMargin() const
Default: 0.
void UseThemedStyle(bool val)
If true, content will be painted using DrawThemeBackground and DrawThemeText, rather than the older F...
CEdgeStyle GetEdgeStyle() const
Default: CEdgeStyle::esLine.
void SetHorizontalMargin(int margin)
Sets left and right text margin inside window edge. A call to UpdateContent may be required to make c...
void UpdateContent()
Wraps calls to Invalidate and UpdateWindow, forcing a repaint, updating the back buffer and blitting ...
CHorzAlignment
Control horizontal placement of text in control window.
void SetBackColor(COLORREF value)
Set a new background color. A call to UpdateContent may be required to make the new color visible...
bool GetEndEllipsisEnabled() const
Default: false.
void SetEndEllipsisEnabled(bool value)
If true, the DT_END_ELLIPSIS flag will be included in calls to DrawText (or DrawThemeText). A call to UpdateContent may be required to make changes visible.
CThemedBackgroundStyle
The CThemedBackgroundStyle enumerants correspond to select TaskDialog Parts, as indicated below...
void UnSubclassStatic()
Un-subclass the window and release GDI resources.
void SubclassStatic(HWND hWnd)
Subclass a Static Text control.
std::basic_string< TCHAR > GetCaption() const
Default: "".
void SetPathEllipsisEnabled(bool value)
If true, the DT_PATH_ELLIPSIS flag will be included in calls to DrawText (or DrawThemeText). A call to UpdateContent may be required to make changes visible.
CThemedTextStyle GetThemedTextStyle() const
Default: ttMainInstruction.
bool GetBtnFaceBkgnd() const
Default: false.
CThemedTextStyle
The CThemedTextStyle enumerants correspond to select TextStyle Parts and States, as indicated below...
bool IsUsingThemedStyle() const
Default: false.