#pragma once #include namespace SRFramework { class SRWidget { public: SRWidget(void); virtual ~SRWidget(void); protected: // We may not want to cache the color. // One reason we may is to track the preferred // back color compared to say the color of a rectangle. COLORREF m_backColor; COLORREF m_foreColor; HFONT m_curFont; HFONT m_oldFont; public: COLORREF setBackColor(HDC hdc, COLORREF color); COLORREF setForeColor(HDC hdc, COLORREF color); void SetFont(HFONT font); }; }