WindowTabCtrl.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #if !defined(AFX_WINDOWTABCTRL_H__C67D43AA_F890_11D1_83BA_0000B43382FE__INCLUDED_)
  2. #define AFX_WINDOWTABCTRL_H__C67D43AA_F890_11D1_83BA_0000B43382FE__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // WindowTabCtrl.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CWindowTabCtrl window
  10. class CWindowTabCtrl : public CTabCtrl
  11. {
  12. private:
  13. BOOL m_bDisplayIcons;
  14. // Construction
  15. public:
  16. CWindowTabCtrl();
  17. // Attributes
  18. public:
  19. // Operations
  20. public:
  21. void SetFonts(CFont* pSelFont, CFont* pUnselFont);
  22. void SetFonts(int nSelWeight = FW_SEMIBOLD, BOOL bSelItalic = FALSE,
  23. BOOL bSelUnderline = FALSE, int nUnselWeight = FW_MEDIUM,
  24. BOOL bUnselItalic = FALSE, BOOL bUnselUnderline = FALSE);
  25. void SetColors(COLORREF bSelColor, COLORREF bUnselColor, COLORREF rcDocModified);
  26. void SetIconDisplay(BOOL bDisplayIt = TRUE);
  27. // Overrides
  28. // ClassWizard generated virtual function overrides
  29. //{{AFX_VIRTUAL(CWindowTabCtrl)
  30. public:
  31. virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
  32. protected:
  33. virtual void PreSubclassWindow();
  34. //}}AFX_VIRTUAL
  35. // Implementation
  36. public:
  37. virtual ~CWindowTabCtrl();
  38. // Implementation
  39. protected:
  40. COLORREF m_crSelColor, m_crUnselColor, m_rcDocModified;
  41. CFont m_SelFont, m_UnselFont;
  42. // Generated message map functions
  43. protected:
  44. //{{AFX_MSG(CWindowTabCtrl)
  45. afx_msg void OnSelchange(NMHDR* pNMHDR, LRESULT* pResult);
  46. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  47. afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. };
  51. /////////////////////////////////////////////////////////////////////////////
  52. //{{AFX_INSERT_LOCATION}}
  53. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  54. #endif // !defined(AFX_WINDOWTABCTRL_H__C67D43AA_F890_11D1_83BA_0000B43382FE__INCLUDED_)