OSDemoView.h
资源名称:OSDemo [点击查看]
上传用户:tianjwyx
上传日期:2007-01-13
资源大小:813k
文件大小:3k
源码类别:
操作系统开发
开发平台:
Visual C++
- // OSDemoView.h : interface of the COSDemoView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_OSDEMOVIEW_H__40423612_F959_4007_9A72_6558FC7AF91B__INCLUDED_)
- #define AFX_OSDEMOVIEW_H__40423612_F959_4007_9A72_6558FC7AF91B__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "TabSheet.h"
- #include "Tab1.h"
- #include "Tab2.h"
- #include "Tab3.h"
- #include "Tab4.h"
- #include "BalloonTip.h"
- class COSDemoView : public CFormView
- {
- protected: // create from serialization only
- COSDemoView();
- DECLARE_DYNCREATE(COSDemoView)
- public:
- //{{AFX_DATA(COSDemoView)
- enum { IDD = IDD_OSDEMO_FORM };
- CTabSheet m_Tab;
- //}}AFX_DATA
- // Attributes
- public:
- COSDemoDoc* GetDocument();
- CTab1 m_Tab1;
- CTab2 m_Tab2;
- CTab3 m_Tab3;
- CTab4 m_Tab4;
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(COSDemoView)
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual void OnInitialUpdate(); // called first time after construct
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnDraw(CDC* pDC);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void ShowBallTip(CPoint pt, CString msg);
- virtual ~COSDemoView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- CBalloonTip* m_pBalloonTip;
- // Generated message map functions
- protected:
- //{{AFX_MSG(COSDemoView)
- afx_msg void OnMenuTest1();
- afx_msg void OnUpdateMenuTest1(CCmdUI* pCmdUI);
- afx_msg void OnMenuTest2();
- afx_msg void OnMenuTest3();
- afx_msg void OnMenuTest4();
- afx_msg void OnSelchangeTabDemo(NMHDR* pNMHDR, LRESULT* pResult);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- void ApplySkin(int n);
- bool bTabInit;
- };
- #ifndef _DEBUG // debug version in OSDemoView.cpp
- inline COSDemoDoc* COSDemoView::GetDocument()
- { return (COSDemoDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_OSDEMOVIEW_H__40423612_F959_4007_9A72_6558FC7AF91B__INCLUDED_)