49 class CColorBlob :
public CWindowImpl<CColorBlob, CStatic>
54 DECLARE_WND_SUPERCLASS(_T(
"CColorBlob"), CStatic::GetWndClassName())
75 void UpdateBackBrush();
77 void PrepareGDIStuff();
78 void DestroyGDIStuff();
80 void DrawEdge(CRect r);
83 bool m_bUpdateContent;
85 COLORREF m_clrBackColor;
88 HBRUSH m_hbrBackBrush;
95 BOOL OnEraseBkgnd(CDCHandle dc);
96 LRESULT OnPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
99 MESSAGE_HANDLER(WM_PAINT, OnPaint)
100 MSG_WM_ERASEBKGND(OnEraseBkgnd)
void SetEdgeStyle(CEdgeStyle style)
Specify a new edge style. A call to UpdateContent may be required to make the new color visible...
A CStatic descendant providing customizable background color and edge style, but no text...
CEdgeStyle
Style of edge defining control boundaries.
void SubclassStatic(HWND hWnd)
Subclass a control window and create the colored background brush.
void UpdateContent()
Wraps calls to Invalidate and UpdateWindow, updating the back buffer and blitting the new content to ...
void UnSubclassStatic()
Un-subclass the window and release GDI resources.
COLORREF GetBackColor() const
Default: COLOR_RED.
void SetBackColor(COLORREF value)
Specify a new background color. A call to UpdateContent may be required to make the new color visible...
CEdgeStyle GetEdgeStyle() const
Default: CEdgeStyle::esLine.