TabCtrlEx.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #if !defined(AFX_TABCTRLEX_H__F3E8650F_019C_479F_9E0F_60FE1181F49F__INCLUDED_)
  2. #define AFX_TABCTRLEX_H__F3E8650F_019C_479F_9E0F_60FE1181F49F__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // TabCtrlEx.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CTabCtrlEx window
  10. class CTabCtrlEx : public CTabCtrl
  11. {
  12. // Construction
  13. public:
  14. CTabCtrlEx();
  15. CDialog *m_tabPages[4];
  16. int m_tabCurrent;
  17. int m_nNumberOfPages;
  18. // Operations
  19. public:
  20. void Init();
  21. void SetRectangle();
  22. // Overrides
  23. // ClassWizard generated virtual function overrides
  24. //{{AFX_VIRTUAL(CTabCtrlEx)
  25. //}}AFX_VIRTUAL
  26. // Implementation
  27. public:
  28. void SetServerInfo(int nItem, LPCTSTR lpszAddress);
  29. void SetTextColor(COLORREF clrText);
  30. void SetBkColor(COLORREF crBkgnd);
  31. virtual ~CTabCtrlEx();
  32. // Generated message map functions
  33. protected:
  34. COLORREF m_clrText;
  35. COLORREF m_clrBkgnd;
  36. CBrush m_brBkgnd;
  37. CBrush m_brText;
  38. //{{AFX_MSG(CTabCtrlEx)
  39. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  40. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  41. afx_msg void OnSize(UINT nType, int cx, int cy);
  42. //}}AFX_MSG
  43. DECLARE_MESSAGE_MAP()
  44. virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
  45. };
  46. /////////////////////////////////////////////////////////////////////////////
  47. //{{AFX_INSERT_LOCATION}}
  48. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  49. #endif // !defined(AFX_TABCTRLEX_H__F3E8650F_019C_479F_9E0F_60FE1181F49F__INCLUDED_)