123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #if !defined(AFX_WINDOWTABCTRL_H__C67D43AA_F890_11D1_83BA_0000B43382FE__INCLUDED_)
- #define AFX_WINDOWTABCTRL_H__C67D43AA_F890_11D1_83BA_0000B43382FE__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif
- class CWindowTabCtrl : public CTabCtrl
- {
- private:
- BOOL m_bDisplayIcons;
- public:
- CWindowTabCtrl();
- public:
- public:
- void SetFonts(CFont* pSelFont, CFont* pUnselFont);
- void SetFonts(int nSelWeight = FW_SEMIBOLD, BOOL bSelItalic = FALSE,
- BOOL bSelUnderline = FALSE, int nUnselWeight = FW_MEDIUM,
- BOOL bUnselItalic = FALSE, BOOL bUnselUnderline = FALSE);
- void SetColors(COLORREF bSelColor, COLORREF bUnselColor, COLORREF rcDocModified);
- void SetIconDisplay(BOOL bDisplayIt = TRUE);
-
-
- public:
- virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
- protected:
- virtual void PreSubclassWindow();
-
- public:
- virtual ~CWindowTabCtrl();
- protected:
- COLORREF m_crSelColor, m_crUnselColor, m_rcDocModified;
- CFont m_SelFont, m_UnselFont;
-
- protected:
-
- afx_msg void OnSelchange(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
-
- DECLARE_MESSAGE_MAP()
- };
- #endif
|