home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / propdlg / shapesvw.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  2KB  |  72 lines

  1. // shapesvw.h : interface of the CShapesView class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. class CShapesView : public CView
  14. {
  15. protected: // create from serialization only
  16.     CShapesView();
  17.     DECLARE_DYNCREATE(CShapesView)
  18.  
  19. // Attributes
  20. public:
  21.     CShapesDoc* GetDocument();
  22.     CShape* m_pShapeSelected;
  23. protected:
  24.     CModalShapePropSheet* m_pModalShapePropSheet;
  25.  
  26.  
  27. // Operations
  28. public:
  29.  
  30. // Overrides
  31.     // ClassWizard generate virtual function overrides
  32.     //{{AFX_VIRTUAL(CShapesView)
  33.     public:
  34.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  35.     protected:
  36.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  37.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  38.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  39.     //}}AFX_VIRTUAL
  40.  
  41. // Implementation
  42. public:
  43.     CModelessShapePropSheet* GetModelessShapePropSheet();
  44.  
  45.     virtual ~CShapesView();
  46. #ifdef _DEBUG
  47.     virtual void AssertValid() const;
  48.     virtual void Dump(CDumpContext& dc) const;
  49. #endif
  50.  
  51. // Generated message map functions
  52. protected:
  53.     //{{AFX_MSG(CShapesView)
  54.     afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  55.     afx_msg void OnSimplePropertySheet();
  56.     afx_msg void OnUpdateSimplePropertySheet(CCmdUI* pCmdUI);
  57.     afx_msg void OnPropertySheetWithPreview();
  58.     afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  59.     afx_msg void OnUpdatePropertySheetWithPreview(CCmdUI* pCmdUI);
  60.     afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
  61.     //}}AFX_MSG
  62.    afx_msg LRESULT OnChangeObjectProps(WPARAM wParam, LPARAM lParam);
  63.     DECLARE_MESSAGE_MAP()
  64. };
  65.  
  66. #ifndef _DEBUG  // debug version in shapesvw.cpp
  67. inline CShapesDoc* CShapesView::GetDocument()
  68.    { return (CShapesDoc*)m_pDocument; }
  69. #endif
  70.  
  71. /////////////////////////////////////////////////////////////////////////////
  72.