home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / CATALG2.PAK / CAT2VIEW.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  2.0 KB  |  69 lines

  1. // catalog2View.h : interface of the CCatalog2View class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. // This is a part of the Microsoft Foundation Classes C++ library.
  6. // Copyright (C) 1992-1995 Microsoft Corporation
  7. // All rights reserved.
  8. //
  9. // This source code is only intended as a supplement to the
  10. // Microsoft Foundation Classes Reference and related
  11. // electronic documentation provided with the library.
  12. // See these sources for detailed information regarding the
  13. // Microsoft Foundation Classes product.
  14.  
  15. class CCatalog2View : public CListView
  16. {
  17. protected: // create from serialization only
  18.     CCatalog2View();
  19.     DECLARE_DYNCREATE(CCatalog2View)
  20.  
  21. // Attributes
  22. public:
  23.     CString        m_strTableName;
  24.     CCatalog2Doc* GetDocument();
  25.  
  26. // Operations
  27. public:
  28.  
  29. // Overrides
  30.     // ClassWizard generated virtual function overrides
  31.     //{{AFX_VIRTUAL(CCatalog2View)
  32.     public:
  33.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  34.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  35.     virtual BOOL OnChildNotify(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pLResult);
  36.     protected:
  37.     virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
  38. //    virtual void OnInitialUpdate(); // called first time after construct
  39.     //}}AFX_VIRTUAL
  40.  
  41. // Implementation
  42. public:
  43.     virtual ~CCatalog2View();
  44. #ifdef _DEBUG
  45.     virtual void AssertValid() const;
  46.     virtual void Dump(CDumpContext& dc) const;
  47. #endif
  48.  
  49. protected:
  50.  
  51. // Generated message map functions
  52. protected:
  53.     //{{AFX_MSG(CCatalog2View)
  54.     afx_msg void OnViewTablelevel();
  55.     afx_msg void OnViewColumnlevel();
  56.     afx_msg void OnFileOpen();
  57.     afx_msg void OnUpdateViewColumnlevel(CCmdUI* pCmdUI);
  58.     afx_msg void OnUpdateViewTablelevel(CCmdUI* pCmdUI);
  59.     //}}AFX_MSG
  60.     DECLARE_MESSAGE_MAP()
  61. };
  62.  
  63. #ifndef _DEBUG  // debug version in catalog2View.cpp
  64. inline CCatalog2Doc* CCatalog2View::GetDocument()
  65.    { return (CCatalog2Doc*)m_pDocument; }
  66. #endif
  67.  
  68. /////////////////////////////////////////////////////////////////////////////
  69.