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

  1. // StatusBarsView.h : interface of the CStatusBarsView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CStatusBarsView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CStatusBarsView();
  9.     DECLARE_DYNCREATE(CStatusBarsView)
  10.  
  11. // Attributes
  12. public:
  13.     CStatusBarsDoc* GetDocument();
  14.  
  15. // Operations
  16. public:
  17.  
  18. // Overrides
  19.     // ClassWizard generated virtual function overrides
  20.     //{{AFX_VIRTUAL(CStatusBarsView)
  21.     public:
  22.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  23.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  24.     protected:
  25.     //}}AFX_VIRTUAL
  26.  
  27. // Implementation
  28. public:
  29.     virtual ~CStatusBarsView();
  30. #ifdef _DEBUG
  31.     virtual void AssertValid() const;
  32.     virtual void Dump(CDumpContext& dc) const;
  33. #endif
  34.  
  35. protected:
  36.     COLORREF IDtoColorRef(int nID);
  37.  
  38. // Generated message map functions
  39. protected:
  40.     //{{AFX_MSG(CStatusBarsView)
  41.         // NOTE - the ClassWizard will add and remove member functions here.
  42.         //    DO NOT EDIT what you see in these blocks of generated code !
  43.     //}}AFX_MSG
  44.     afx_msg void OnStandardColors(UINT nID);
  45.     afx_msg void OnUpdateStandardColors(CCmdUI* pCmdUI);
  46.     DECLARE_MESSAGE_MAP()
  47. };
  48.  
  49. #ifndef _DEBUG  // debug version in StatusBarsView.cpp
  50. inline CStatusBarsDoc* CStatusBarsView::GetDocument()
  51.    { return (CStatusBarsDoc*)m_pDocument; }
  52. #endif
  53.  
  54. /////////////////////////////////////////////////////////////////////////////
  55.