Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.5 KiB

  1. // testView.h : interface of the CTestView class
  2. //
  3. //=--------------------------------------------------------------------------=
  4. // Copyright 1997-1999 Microsoft Corporation. All Rights Reserved.
  5. //
  6. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  7. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  8. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  9. // PARTICULAR PURPOSE.
  10. //=--------------------------------------------------------------------------=
  11. /////////////////////////////////////////////////////////////////////////////
  12. class CTestView : public CEditView
  13. {
  14. protected: // create from serialization only
  15. CTestView();
  16. DECLARE_DYNCREATE(CTestView)
  17. // Attributes
  18. public:
  19. CTestDoc* GetDocument();
  20. // Operations
  21. public:
  22. // Overrides
  23. // ClassWizard generated virtual function overrides
  24. //{{AFX_VIRTUAL(CTestView)
  25. public:
  26. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  27. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  28. protected:
  29. //}}AFX_VIRTUAL
  30. // Implementation
  31. public:
  32. virtual ~CTestView();
  33. #ifdef _DEBUG
  34. virtual void AssertValid() const;
  35. virtual void Dump(CDumpContext& dc) const;
  36. #endif
  37. protected:
  38. // Generated message map functions
  39. protected:
  40. //{{AFX_MSG(CTestView)
  41. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  42. //}}AFX_MSG
  43. DECLARE_MESSAGE_MAP()
  44. };
  45. #ifndef _DEBUG // debug version in testView.cpp
  46. inline CTestDoc* CTestView::GetDocument()
  47. { return (CTestDoc*)m_pDocument; }
  48. #endif
  49. /////////////////////////////////////////////////////////////////////////////