View.h
上传用户:nhyuejuan
上传日期:2013-12-02
资源大小:171k
文件大小:2k
源码类别:

状态条

开发平台:

Visual C++

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Project:PGRSBAR
  3. // Author:NorthTibet
  4. // Date:星期二, 十二月 31, 2002
  5. // Description:在状态栏例实现进程指示器控制。
  6. //
  7. /////////////////////////////////////////////////////////////////////////////
  8. // View.h : interface of the CMyView class
  9. //
  10. /////////////////////////////////////////////////////////////////////////////
  11. #if !defined(AFX_VIEW_H__F087700D_CD7F_4005_9B8E_9C52E4215DC5__INCLUDED_)
  12. #define AFX_VIEW_H__F087700D_CD7F_4005_9B8E_9C52E4215DC5__INCLUDED_
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif // _MSC_VER > 1000
  16. class CMyView : public CEditView
  17. {
  18. protected: // create from serialization only
  19. CMyView();
  20. DECLARE_DYNCREATE(CMyView)
  21. // Attributes
  22. public:
  23. CMyDoc* GetDocument();
  24. // Operations
  25. public:
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(CMyView)
  29. public:
  30. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  31. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  32. protected:
  33. //}}AFX_VIRTUAL
  34. // Implementation
  35. public:
  36. virtual ~CMyView();
  37. #ifdef _DEBUG
  38. virtual void AssertValid() const;
  39. virtual void Dump(CDumpContext& dc) const;
  40. #endif
  41. protected:
  42. // Generated message map functions
  43. protected:
  44. //{{AFX_MSG(CMyView)
  45. // NOTE - the ClassWizard will add and remove member functions here.
  46. //    DO NOT EDIT what you see in these blocks of generated code !
  47. //}}AFX_MSG
  48. DECLARE_MESSAGE_MAP()
  49. };
  50. #ifndef _DEBUG  // debug version in View.cpp
  51. inline CMyDoc* CMyView::GetDocument()
  52.    { return (CMyDoc*)m_pDocument; }
  53. #endif
  54. /////////////////////////////////////////////////////////////////////////////
  55. //{{AFX_INSERT_LOCATION}}
  56. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  57. #endif // !defined(AFX_VIEW_H__F087700D_CD7F_4005_9B8E_9C52E4215DC5__INCLUDED_)