GroupStatic.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #if !defined(AFX_GROUPSTATIC_H__C7039DB6_84EE_4622_8054_6DBA48FA21A9__INCLUDED_)
  2. #define AFX_GROUPSTATIC_H__C7039DB6_84EE_4622_8054_6DBA48FA21A9__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // GroupStatic.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CGroupStatic window
  10. class CGroupStatic : public CStatic
  11. {
  12. // Construction
  13. public:
  14. CGroupStatic();
  15. // Attributes
  16. public:
  17. // Operations
  18. public:
  19. void SetTextColor( COLORREF color ) { m_dwTextColor = color; }
  20. void SetBkColor( COLORREF color ) { m_dwBkColor = color; }
  21. void SetFont( int nPointSize, LPCTSTR lpszFaceName, CDC* pDC = NULL );
  22. void SetFont(CFont *pFont) { CStatic::SetFont(pFont); }
  23. // Overrides
  24. // ClassWizard generated virtual function overrides
  25. //{{AFX_VIRTUAL(CGroupStatic)
  26. public:
  27. virtual BOOL OnChildNotify(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pLResult);
  28. //}}AFX_VIRTUAL
  29. // Implementation
  30. public:
  31. virtual ~CGroupStatic();
  32. protected:
  33. COLORREF m_dwTextColor;
  34. COLORREF m_dwBkColor;
  35. CFont* m_pFont;
  36. CBrush m_brush;
  37. CString m_strBuff; // Holds the static controls contents before & after the control is displayed
  38. // Generated message map functions
  39. protected:
  40. //{{AFX_MSG(CGroupStatic)
  41. // NOTE - the ClassWizard will add and remove member functions here.
  42. //}}AFX_MSG
  43. DECLARE_MESSAGE_MAP()
  44. };
  45. /////////////////////////////////////////////////////////////////////////////
  46. //{{AFX_INSERT_LOCATION}}
  47. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  48. #endif // !defined(AFX_GROUPSTATIC_H__C7039DB6_84EE_4622_8054_6DBA48FA21A9__INCLUDED_)