TabWnd.h
资源名称:视频会议系统.rar [点击查看]
上传用户:popouu88
上传日期:2013-02-11
资源大小:2894k
文件大小:2k
源码类别:
IP电话/视频会议
开发平台:
Visual C++
- #if !defined(AFX_TABWND_H__10EB5254_F25D_4317_920F_696C598DFD0D__INCLUDED_)
- #define AFX_TABWND_H__10EB5254_F25D_4317_920F_696C598DFD0D__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // TabWnd.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CTabWnd window
- class CTabWnd : public CTabCtrl
- {
- public:
- CTabWnd();
- virtual ~CTabWnd();
- bool AddTab( LPCSTR name );
- bool AddWnd( CWnd * pWnd , LPCSTR name = NULL , bool autoDelete = true );
- CWnd * GetWnd( int index = -1 );
- void RegisterTabChangeEvent( void ( * OnTab )( void * pContext , int index , bool m_bShow ) , void * pContext );
- virtual int SetCurSel( int nItem );
- virtual void GetClientRect( LPRECT lpRect );
- protected:
- //{{AFX_VIRTUAL(CTabWnd)
- virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
- virtual void PreSubclassWindow();
- //}}AFX_VIRTUAL
- virtual void DrawItem(LPDRAWITEMSTRUCT lpDS);
- //{{AFX_MSG(CTabWnd)
- afx_msg void OnDestroy();
- afx_msg void OnSelchange(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnSelchanging(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
- afx_msg void OnPaint();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- void ( * OnTab )( void * pContext , int index , bool m_bShow );
- void * pContext;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_TABWND_H__10EB5254_F25D_4317_920F_696C598DFD0D__INCLUDED_)