home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c06 / modeless / mlesview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.4 KB  |  55 lines

  1. // MlesView.h : interface of the CModelessView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CModelessView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CModelessView();
  9.     DECLARE_DYNCREATE(CModelessView)
  10.  
  11. // Attributes
  12. public:
  13.     CModelessDoc* GetDocument();
  14.     static UINT m_UserMsg;
  15.  
  16. protected:
  17.     CListWithItemDataDlg * m_pDlg;
  18.  
  19. // Operations
  20. public:
  21.  
  22. // Overrides
  23.     // ClassWizard generated virtual function overrides
  24.     //{{AFX_VIRTUAL(CModelessView)
  25.     public:
  26.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  27.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  28.     //}}AFX_VIRTUAL
  29.  
  30. // Implementation
  31. public:
  32.     virtual ~CModelessView();
  33. #ifdef _DEBUG
  34.     virtual void AssertValid() const;
  35.     virtual void Dump(CDumpContext& dc) const;
  36. #endif
  37.  
  38. protected:
  39. // Generated message map functions
  40. protected:
  41.     //{{AFX_MSG(CModelessView)
  42.     afx_msg void OnModifyDisplaymodelessdialog();
  43.     afx_msg void OnUpdateModifyDisplaymodelessdialog(CCmdUI* pCmdUI);
  44.     //}}AFX_MSG
  45.     afx_msg LRESULT MyMessageHandler(WPARAM wParam, LPARAM lParam);
  46.     DECLARE_MESSAGE_MAP()
  47. };
  48.  
  49. #ifndef _DEBUG  // debug version in ModelessView.cpp
  50. inline CModelessDoc* CModelessView::GetDocument()
  51.    { return (CModelessDoc*)m_pDocument; }
  52. #endif
  53.  
  54. /////////////////////////////////////////////////////////////////////////////
  55.