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

  1. // catalvw.h : interface of the CCatalogView 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. /////////////////////////////////////////////////////////////////////////////
  14.  
  15. class CTables;
  16. class CColumns;
  17.  
  18. class CCatalogView : public CRecordView
  19. {
  20. protected: // create from serialization only
  21.     CCatalogView();
  22.     DECLARE_DYNCREATE(CCatalogView)
  23.  
  24. public:
  25.     //{{AFX_DATA(CCatalogView)
  26.     enum { IDD = IDD_CATALOG_FORM };
  27.     CListBox    m_lbColumns;
  28.     CTables* m_pSet;
  29.     //}}AFX_DATA
  30.  
  31. // Attributes
  32. public:
  33.     CCatalogDoc* GetDocument();
  34.     CColumns m_Columns;
  35.  
  36. // Operations
  37. public:
  38.     virtual CRecordset* OnGetRecordset();
  39.     virtual BOOL OnMove(UINT nIDMoveCommand);
  40.     void FillColumnsListBox();
  41.  
  42. // Implementation
  43. public:
  44.     virtual ~CCatalogView();
  45. #ifdef _DEBUG
  46.     virtual void AssertValid() const;
  47.     virtual void Dump(CDumpContext& dc) const;
  48. #endif
  49.  
  50. protected:
  51.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  52.     virtual void OnInitialUpdate(); // called first time after construct
  53.  
  54. // Generated message map functions
  55. protected:
  56.     //{{AFX_MSG(CCatalogView)
  57.     afx_msg void OnUpdateAppExit(CCmdUI* pCmdUI);
  58.     //}}AFX_MSG
  59.     DECLARE_MESSAGE_MAP()
  60. };
  61.  
  62. #ifndef _DEBUG  // debug version in catalvw.cpp
  63. inline CCatalogDoc* CCatalogView::GetDocument()
  64.    { return (CCatalogDoc*)m_pDocument; }
  65. #endif
  66.  
  67. /////////////////////////////////////////////////////////////////////////////
  68.