| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #if !defined(AFX_GROUPSTATIC_H__C7039DB6_84EE_4622_8054_6DBA48FA21A9__INCLUDED_)
- #define AFX_GROUPSTATIC_H__C7039DB6_84EE_4622_8054_6DBA48FA21A9__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // GroupStatic.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CGroupStatic window
- class CGroupStatic : public CStatic
- {
- // Construction
- public:
- CGroupStatic();
- // Attributes
- public:
- // Operations
- public:
- void SetTextColor( COLORREF color ) { m_dwTextColor = color; }
- void SetBkColor( COLORREF color ) { m_dwBkColor = color; }
- void SetFont( int nPointSize, LPCTSTR lpszFaceName, CDC* pDC = NULL );
- void SetFont(CFont *pFont) { CStatic::SetFont(pFont); }
- void SetToggleCursor(bool toggle) { m_toggleCursorToHand = toggle; }
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CGroupStatic)
- public:
- virtual BOOL OnChildNotify(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pLResult);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CGroupStatic();
- protected:
- COLORREF m_dwTextColor;
- COLORREF m_dwBkColor;
- CFont* m_pFont;
- CBrush m_brush;
- CString m_strBuff; // Holds the static controls contents before & after the control is displayed
- bool m_toggleCursorToHand;
- // Generated message map functions
- protected:
- //{{AFX_MSG(CGroupStatic)
- afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_GROUPSTATIC_H__C7039DB6_84EE_4622_8054_6DBA48FA21A9__INCLUDED_)
|