TabCtrlView.h
资源名称:TabSample.rar [点击查看]
上传用户:sz86035077
上传日期:2013-02-27
资源大小:40k
文件大小:2k
源码类别:
Tab控件
开发平台:
Visual C++
- #if !defined(AFX_TABCTRLVIEW_H__A92CBF86_5E26_43C2_9C6D_B851D698C4F1__INCLUDED_)
- #define AFX_TABCTRLVIEW_H__A92CBF86_5E26_43C2_9C6D_B851D698C4F1__INCLUDED_
- #include "ViewTabCtrl.h" // Added by ClassView
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // TabCtrlView.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CTabCtrlView window
- class CTabCtrlView : public CWnd
- {
- // Construction
- public:
- CTabCtrlView();
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTabCtrlView)
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void SetTab(int tab);
- CView* GetActiveView();
- void RecalcLayout();
- virtual CView* CreateView(CRuntimeClass* pViewClass, SIZE sizeInit, CCreateContext* pContext );
- virtual BOOL HandleTabs(int sel);
- BOOL CreateStatic(CWnd* pParentWnd, DWORD dwStyle = WS_CHILD | WS_VISIBLE, UINT nid = AFX_IDW_PANE_FIRST);
- virtual ~CTabCtrlView();
- // Generated message map functions
- protected:
- virtual void InitTabs(CTabCtrlView* pView);
- CViewTabCtrl m_tabctl;
- CView* m_activeView;
- BOOL CreateCommon(CWnd* pParentwnd, SIZE sizeMin, DWORD dwStyle, UINT nid);
- //{{AFX_MSG(CTabCtrlView)
- afx_msg void OnSize(UINT nType, int cx, int cy);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_TABCTRLVIEW_H__A92CBF86_5E26_43C2_9C6D_B851D698C4F1__INCLUDED_)