ViewTabCtrl.h
资源名称:TabSample.rar [点击查看]
上传用户:sz86035077
上传日期:2013-02-27
资源大小:40k
文件大小:1k
源码类别:
Tab控件
开发平台:
Visual C++
- #if !defined(AFX_VIEWTABCTRL_H__AAF645DE_D9FE_4A6E_AB8E_B16781C3B6D4__INCLUDED_)
- #define AFX_VIEWTABCTRL_H__AAF645DE_D9FE_4A6E_AB8E_B16781C3B6D4__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // ViewTabCtrl.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CViewTabCtrl window
- class CTabCtrlView;
- class CViewTabCtrl : public CTabCtrl
- {
- // Construction
- public:
- CViewTabCtrl();
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CViewTabCtrl)
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void SetView(CTabCtrlView* pView);
- virtual void RecalcLayout(CRect& rect, CWnd* pWnd);
- virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
- virtual ~CViewTabCtrl();
- // Generated message map functions
- protected:
- virtual BOOL HandleTabs(int sel);
- CTabCtrlView* m_pView;
- CDC m_dc;
- CString m_strGrayfont;
- CString m_strSelfont;
- CFont m_selFont;
- //{{AFX_MSG(CViewTabCtrl)
- afx_msg void OnSelchange(NMHDR* pNMHDR, LRESULT* pResult);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_VIEWTABCTRL_H__AAF645DE_D9FE_4A6E_AB8E_B16781C3B6D4__INCLUDED_)