123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #if !defined(AFX_TABCTRLEX_H__F3E8650F_019C_479F_9E0F_60FE1181F49F__INCLUDED_)
- #define AFX_TABCTRLEX_H__F3E8650F_019C_479F_9E0F_60FE1181F49F__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif
- class CTabCtrlEx : public CTabCtrl
- {
- public:
- CTabCtrlEx();
- CDialog *m_tabPages[4];
- int m_tabCurrent;
- int m_nNumberOfPages;
- public:
- void Init();
- void SetRectangle();
-
-
-
- public:
- void SetServerInfo(int nItem, LPCTSTR lpszAddress);
- void SetTextColor(COLORREF clrText);
- void SetBkColor(COLORREF crBkgnd);
- virtual ~CTabCtrlEx();
-
- protected:
- COLORREF m_clrText;
- COLORREF m_clrBkgnd;
- CBrush m_brBkgnd;
- CBrush m_brText;
-
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnSize(UINT nType, int cx, int cy);
-
- DECLARE_MESSAGE_MAP()
-
- virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
- };
- #endif
|