home *** CD-ROM | disk | FTP | other *** search
- // DBListView.h : header file
- //
-
- /////////////////////////////////////////////////////////////////////////////
- // CDBListView view
-
- class CDBListView : public CListView
- {
- protected:
- CDBListView(); // protected constructor used by dynamic creation
- DECLARE_DYNCREATE(CDBListView)
-
- // Attributes
- public:
-
- protected:
- CListCtrl* m_pListCtrl;
- CBiblioSet* m_pRecordset;
-
- // Operations
- public:
- CDBAccessDoc* GetDocument(); // non-debug version is inline
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDBListView)
- public:
- virtual void OnInitialUpdate();
- protected:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- //}}AFX_VIRTUAL
-
- // Implementation
- protected:
- virtual ~CDBListView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
-
- // Helper functions
- BOOL FillListViewHeaders(int cx);
- BOOL FillListViewEntries(int nRecords);
-
- // Generated message map functions
- protected:
- //{{AFX_MSG(CDBListView)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnDestroy();
- //}}AFX_MSG
- afx_msg long OnFillListView(WPARAM nRecords, LPARAM);
-
- DECLARE_MESSAGE_MAP()
- };
-
- /////////////////////////////////////////////////////////////////////////////
-
- #ifndef _DEBUG // debug version in DBAccessView.cpp
- inline CDBAccessDoc* CDBListView::GetDocument()
- { return (CDBAccessDoc*)m_pDocument; }
- #endif
-
-
-