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

  1. // datadlg.h : header file
  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 "bulkset.h"
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CDataDialog dialog
  17.  
  18. class CDataDialog : public CDialog
  19. {
  20. // Construction
  21. public:
  22.     CDataDialog(CWnd* pParent = NULL);   // standard constructor
  23.  
  24. // Dialog Data
  25.     //{{AFX_DATA(CDataDialog)
  26.     enum { IDD = IDD_GETDATA_DAILOG };
  27.     CListCtrl   m_listData;
  28.     //}}AFX_DATA
  29.  
  30.  
  31. // Overrides
  32.     // ClassWizard generated virtual function overrides
  33.     //{{AFX_VIRTUAL(CDataDialog)
  34.     protected:
  35.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  36.     //}}AFX_VIRTUAL
  37.  
  38. // Implementation
  39. protected:
  40.  
  41.     CDynamicBulkSet* m_prs;
  42.  
  43.     // Generated message map functions
  44.     //{{AFX_MSG(CDataDialog)
  45.     afx_msg void OnFirst();
  46.     afx_msg void OnLast();
  47.     afx_msg void OnNext();
  48.     afx_msg void OnPrev();
  49.     //}}AFX_MSG
  50.     DECLARE_MESSAGE_MAP()
  51.  
  52. public:
  53.     void SetRecordset(CDynamicBulkSet* prs);
  54.     virtual int DoModal();
  55.  
  56.     void AddColumns();
  57.     void FillData();
  58.  
  59.     virtual BOOL OnInitDialog();
  60. };
  61.