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

  1. // catalog2View.h : interface of the CCatalog2View 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 CCatalog2View : public CListView
  14. {
  15. protected: // create from serialization only
  16.     CCatalog2View();
  17.     DECLARE_DYNCREATE(CCatalog2View)
  18.  
  19. // Attributes
  20. public:
  21.     CString     m_strTableName;
  22.     CCatalog2Doc* GetDocument();
  23.  
  24. // Operations
  25. public:
  26.  
  27. // Overrides
  28.     // ClassWizard generated virtual function overrides
  29.     //{{AFX_VIRTUAL(CCatalog2View)
  30.     public:
  31.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  32.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  33.     virtual BOOL OnChildNotify(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pLResult);
  34.     protected:
  35.     virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
  36. //  virtual void OnInitialUpdate(); // called first time after construct
  37.     //}}AFX_VIRTUAL
  38.  
  39. // Implementation
  40. public:
  41.     virtual ~CCatalog2View();
  42. #ifdef _DEBUG
  43.     virtual void AssertValid() const;
  44.     virtual void Dump(CDumpContext& dc) const;
  45. #endif
  46.  
  47. protected:
  48.  
  49. // Generated message map functions
  50. protected:
  51.     //{{AFX_MSG(CCatalog2View)
  52.     afx_msg void OnViewTablelevel();
  53.     afx_msg void OnViewColumnlevel();
  54.     afx_msg void OnFileOpen();
  55.     afx_msg void OnUpdateViewColumnlevel(CCmdUI* pCmdUI);
  56.     afx_msg void OnUpdateViewTablelevel(CCmdUI* pCmdUI);
  57.     //}}AFX_MSG
  58.     DECLARE_MESSAGE_MAP()
  59. };
  60.  
  61. #ifndef _DEBUG  // debug version in catalog2View.cpp
  62. inline CCatalog2Doc* CCatalog2View::GetDocument()
  63.    { return (CCatalog2Doc*)m_pDocument; }
  64. #endif
  65.  
  66. /////////////////////////////////////////////////////////////////////////////
  67.