GroupStatic.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. void SetToggleCursor(bool toggle) { m_toggleCursorToHand = toggle; }
  24. // Overrides
  25. // ClassWizard generated virtual function overrides
  26. //{{AFX_VIRTUAL(CGroupStatic)
  27. public:
  28. virtual BOOL OnChildNotify(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pLResult);
  29. //}}AFX_VIRTUAL
  30. // Implementation
  31. public:
  32. virtual ~CGroupStatic();
  33. protected:
  34. COLORREF m_dwTextColor;
  35. COLORREF m_dwBkColor;
  36. CFont* m_pFont;
  37. CBrush m_brush;
  38. CString m_strBuff; // Holds the static controls contents before & after the control is displayed
  39. bool m_toggleCursorToHand;
  40. // Generated message map functions
  41. protected:
  42. //{{AFX_MSG(CGroupStatic)
  43. afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
  44. //}}AFX_MSG
  45. DECLARE_MESSAGE_MAP()
  46. };
  47. /////////////////////////////////////////////////////////////////////////////
  48. //{{AFX_INSERT_LOCATION}}
  49. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  50. #endif // !defined(AFX_GROUPSTATIC_H__C7039DB6_84EE_4622_8054_6DBA48FA21A9__INCLUDED_)