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

  1. // GridView.h : interface of the CGridView 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. #include "msdgrid.h"
  14. #include "rdc.h"
  15.  
  16. class CGridView : public CView
  17. {
  18. protected: // create from serialization only
  19.     CGridView();
  20.     DECLARE_DYNCREATE(CGridView)
  21.  
  22. // Attributes
  23. public:
  24.     CMDIBindDoc* GetDocument();
  25.  
  26. // Operations
  27. public:
  28.  
  29. // Overrides
  30.     // ClassWizard generated virtual function overrides
  31.     //{{AFX_VIRTUAL(CGridView)
  32.     public:
  33.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  34.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  35.     protected:
  36.     //}}AFX_VIRTUAL
  37.  
  38. // Implementation
  39. public:
  40.     virtual ~CGridView();
  41. #ifdef _DEBUG
  42.     virtual void AssertValid() const;
  43.     virtual void Dump(CDumpContext& dc) const;
  44. #endif
  45.  
  46. protected:
  47.     CMsDgridCtrl* m_pGridCtl;
  48.     virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint );
  49.  
  50. // Generated message map functions
  51. protected:
  52.     //{{AFX_MSG(CGridView)
  53.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  54.     afx_msg void OnSize(UINT nType, int cx, int cy);
  55.     //}}AFX_MSG
  56.     DECLARE_MESSAGE_MAP()
  57. };
  58.  
  59. #ifndef _DEBUG  // debug version in GridView.cpp
  60. inline CMDIBindDoc* CGridView::GetDocument()
  61.    { return (CMDIBindDoc*) m_pDocument; }
  62. #endif
  63.  
  64. /////////////////////////////////////////////////////////////////////////////
  65.