InfoTopicBar.h
上传用户:maryhy001
上传日期:2007-05-02
资源大小:2317k
文件大小:1k
- // InfoTopicBar.h : header file
- #ifndef _INFOTOPICBAR_H
- #define _INFOTOPICBAR_H
- #include "BitmapStatic.h"
- // CInfoTopicBar window
- class CInfoTopicBar : public CStatic
- {
- // Construction
- public:
- CInfoTopicBar();
- ~CInfoTopicBar();
- // Attributes
- public:
- DWORD m_exData;
- // Operations
- public:
- void SetBackColor(COLORREF crcolor);
- void SetFontColor(COLORREF crcolor);
- BOOL SetFont(HFONT hfont);
- void SetText(LPCTSTR lpszText);
- void GetText(CString strText);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CInfoTopicBar)
- protected:
- virtual void PreSubclassWindow();
- //}}AFX_VIRTUAL
- // Generated message map functions
- protected:
- //{{AFX_MSG(CInfoTopicBar)
- afx_msg void OnPaint();
- afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- afx_msg void OnClicked();
- private:
- HCURSOR m_hHandCursor;
- COLORREF m_crbackcolor; //background colour
- COLORREF m_crfontcolor; //font colour
- CFont m_fnfont; //font style.
- CString m_lpsText; //text / caption.
- };
- #endif // !_INFOTOPICBAR_H