home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / dbmsg / ado / read / adorddlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-12-02  |  2.0 KB  |  81 lines

  1. //--------------------------------------------------------------------
  2. // Microsoft ADO Samples
  3. //
  4. // (c) 1996 Microsoft Corporation.  All Rights Reserved.
  5. //
  6. // @doc ADORead Sample
  7. //
  8. // @module    ADOrddlg.h
  9. //
  10. // @devnote None
  11. //--------------------------------------------------------------------
  12. // ADOReadDlg.h : header file
  13. //
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CADOReadDlg dialog
  17.  
  18. class CADOReadDlg : public CDialog
  19. {
  20. // Construction
  21. public:
  22.     CADOReadDlg(CWnd* pParent = NULL);    // standard constructor
  23.     ~CADOReadDlg();
  24.  
  25.     //Display results of query
  26.     void CADOReadDlg::DisplayQueryTime(int iControlID, int iUnitsID, DWORD dwDuration);
  27.     void CADOReadDlg::AddFieldToList(LONG lRecordNum, COleVariant *pdbVar);
  28.     void CADOReadDlg::Execute(CursorTypeEnum cursorType, int iControlID, int iUnitsID); 
  29. // Dialog Data
  30.     //{{AFX_DATA(CADOReadDlg)
  31.     enum { IDD = IDD_DAOREAD_DIALOG };
  32.     CComboBox    m_comboBoxMode;
  33.     CComboBox    m_comboBoxOption;             
  34.     long    m_lCacheSize;    
  35.     CString    m_strTableQuery;
  36.     long    m_lNumRows;
  37.     BOOL    m_bDynamic;
  38.     BOOL    m_bKeyset;
  39.     BOOL    m_bStatic;
  40.     BOOL    m_bForwardOnly;
  41.     CString    m_strSource; 
  42.     CString    m_strUser;
  43.     CString    m_strPassword;
  44.     CString    m_strProvider;
  45.     long    m_lConnectOption;    
  46.     long    m_lConnectMode;
  47. //    BOOL    m_bReadOnly;
  48.     //}}AFX_DATA
  49.  
  50. //    CADODefaultWorkspace m_cDefaultWorkspace;
  51.     ADOConnection *        m_piConnection;
  52.  
  53.     // ClassWizard generated virtual function overrides
  54.     //{{AFX_VIRTUAL(CADOReadDlg)
  55.     protected:
  56.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  57.     //}}AFX_VIRTUAL
  58.  
  59. // Implementation
  60. protected:
  61.  
  62.     HICON m_hIcon;
  63.     CComboBox m_ComboBoxOption;
  64.  
  65.     // Generated message map functions
  66.     //{{AFX_MSG(CADOReadDlg)
  67.     virtual BOOL OnInitDialog();
  68.     afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  69.     afx_msg void OnPaint();
  70.     afx_msg HCURSOR OnQueryDragIcon();
  71.     afx_msg void OnDatabase();
  72.     afx_msg void OnExecute();
  73.     afx_msg void OnSelchangeConnectMode();
  74.     afx_msg void OnSelchangeConnectOption();
  75.     //}}AFX_MSG
  76.     DECLARE_MESSAGE_MAP()
  77. };
  78.  
  79.  
  80.  
  81.