MyTabCtrl.h
上传用户:pumpssky
上传日期:2007-12-07
资源大小:110k
文件大小:2k
- #if !defined(AFX_MYTABCTRL_H__F220CA44_AD3A_44BC_A97F_4D56A76FFB7B__INCLUDED_)
- #define AFX_MYTABCTRL_H__F220CA44_AD3A_44BC_A97F_4D56A76FFB7B__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // MyTabCtrl.h : header file
- //
- #include "MonitorDlg.h"
- #include "OperateDlg.h"
- #include "SetupDlg.h"
- #include "AdvanceDlg.h"
- /////////////////////////////////////////////////////////////////////////////
- // CMyTabCtrl window
- class CMyTabCtrl : public CTabCtrl
- {
- // Construction
- public:
- CMyTabCtrl();
- // Attributes
- public:
- //Array to hold the list of dialog boxes/tab pages for CTabCtrl
- int m_DialogID[4];
- int m_nPageCount;
- //CDialog Array Variable to hold the dialogs
- CDialog *m_Dialog[4];
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMyTabCtrl)
- //}}AFX_VIRTUAL
- // Implementation
- public:
- CAdvanceDlg * GetAdvanceDlg();
- CSetupDlg * GetSetupDlg();
- COperateDlg * GetOperateDlg();
- CMonitorDlg * GetMonitorDlg();
- virtual ~CMyTabCtrl();
- //Function to Create the dialog boxes during startup
- void InitDialogs();
- //Function to activate the tab dialog boxes
- void ActivateTabDialogs();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMyTabCtrl)
- 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_MYTABCTRL_H__F220CA44_AD3A_44BC_A97F_4D56A76FFB7B__INCLUDED_)