OSDemoView.h
上传用户:tianjwyx
上传日期:2007-01-13
资源大小:813k
文件大小:3k
源码类别:

操作系统开发

开发平台:

Visual C++

  1. // OSDemoView.h : interface of the COSDemoView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_OSDEMOVIEW_H__40423612_F959_4007_9A72_6558FC7AF91B__INCLUDED_)
  5. #define AFX_OSDEMOVIEW_H__40423612_F959_4007_9A72_6558FC7AF91B__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "TabSheet.h"
  10. #include "Tab1.h"
  11. #include "Tab2.h"
  12. #include "Tab3.h"
  13. #include "Tab4.h"
  14. #include "BalloonTip.h"
  15. class COSDemoView : public CFormView
  16. {
  17. protected: // create from serialization only
  18. COSDemoView();
  19. DECLARE_DYNCREATE(COSDemoView)
  20. public:
  21. //{{AFX_DATA(COSDemoView)
  22. enum { IDD = IDD_OSDEMO_FORM };
  23. CTabSheet m_Tab;
  24. //}}AFX_DATA
  25.     
  26. // Attributes
  27. public:
  28. COSDemoDoc* GetDocument();
  29.     CTab1 m_Tab1;
  30.     CTab2 m_Tab2;
  31. CTab3 m_Tab3;
  32. CTab4 m_Tab4;
  33. // Operations
  34. public:
  35. // Overrides
  36. // ClassWizard generated virtual function overrides
  37. //{{AFX_VIRTUAL(COSDemoView)
  38. public:
  39. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  40. protected:
  41. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  42. virtual void OnInitialUpdate(); // called first time after construct
  43. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  44. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  45. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  46. virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
  47. virtual void OnDraw(CDC* pDC);
  48. //}}AFX_VIRTUAL
  49. // Implementation
  50. public:
  51. void ShowBallTip(CPoint pt, CString msg);
  52. virtual ~COSDemoView();
  53. #ifdef _DEBUG
  54. virtual void AssertValid() const;
  55. virtual void Dump(CDumpContext& dc) const;
  56. #endif
  57. protected:
  58.     CBalloonTip* m_pBalloonTip;
  59. // Generated message map functions
  60. protected:
  61. //{{AFX_MSG(COSDemoView)
  62. afx_msg void OnMenuTest1();
  63. afx_msg void OnUpdateMenuTest1(CCmdUI* pCmdUI);
  64. afx_msg void OnMenuTest2();
  65. afx_msg void OnMenuTest3();
  66. afx_msg void OnMenuTest4();
  67. afx_msg void OnSelchangeTabDemo(NMHDR* pNMHDR, LRESULT* pResult);
  68. //}}AFX_MSG
  69. DECLARE_MESSAGE_MAP()
  70. private:
  71. void ApplySkin(int n);
  72. bool bTabInit;
  73. };
  74. #ifndef _DEBUG  // debug version in OSDemoView.cpp
  75. inline COSDemoDoc* COSDemoView::GetDocument()
  76.    { return (COSDemoDoc*)m_pDocument; }
  77. #endif
  78. /////////////////////////////////////////////////////////////////////////////
  79. //{{AFX_INSERT_LOCATION}}
  80. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  81. #endif // !defined(AFX_OSDEMOVIEW_H__40423612_F959_4007_9A72_6558FC7AF91B__INCLUDED_)