home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 32 / IOPROG_32.ISO / SOFT / SqlEval7 / devtools / samples / ODBC / mfcperf / viewfast.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-20  |  2.2 KB  |  91 lines

  1. // MFCPViewFast.h : interface of the CMFCPViewSlow class
  2. //
  3. // This file is part of Microsoft SQL Server online documentation.
  4. // Copyright (C) 1992-1997 Microsoft Corporation. All rights reserved.
  5. //
  6. // This source code is an intended supplement to the Microsoft SQL
  7. // Server online references and related electronic documentation.
  8.  
  9. /////////////////////////////////////////////////////////////////////////////
  10. //{{AFX_INCLUDES()
  11. #include "msflexgr.h"
  12. //}}AFX_INCLUDES
  13.  
  14. #include "FOSet.h"
  15. #include "FODet.h"
  16.  
  17. class CMFCPCust;
  18.  
  19. class CMFCPViewFast : public CRecordView
  20. {
  21. protected:
  22.     CMFCPViewFast();           // protected constructor used by dynamic creation
  23.     DECLARE_DYNCREATE(CMFCPViewFast)
  24.  
  25. // Form Data
  26. public:
  27.     //{{AFX_DATA(CMFCPViewFast)
  28.     enum { IDD = IDD_MFCPERF_FORM };
  29.     CStatic    m_staticToSee;
  30.     CEdit    m_editCountry;
  31.     CEdit    m_editCompany;
  32.     CStatic    m_staticClick;
  33.     CMFCPCust* m_pSet;
  34.     CMSFlexGrid    m_gridDetails;
  35.     CMSFlexGrid    m_gridOrders;
  36.     //}}AFX_DATA
  37.  
  38. // Attributes
  39. public:
  40.     CMFCPDocFast* GetDocument();
  41.     CFastOrdersSet*     m_pOrders;
  42.     CFastOrdersDetail*  m_pOrdersDetail;
  43.  
  44. private:
  45.     BOOL                m_bInFill;
  46.  
  47. // Operations
  48. public:
  49.     CMFCPCust* GetRecordset();
  50.  
  51. // Overrides
  52.     // ClassWizard generated virtual function overrides
  53.     //{{AFX_VIRTUAL(CMFCPViewFast)
  54.     public:
  55.     virtual CRecordset* OnGetRecordset();
  56.     virtual BOOL OnMove(UINT nIDMoveCommand);
  57.     protected:
  58.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  59.     virtual void OnInitialUpdate();
  60.     //}}AFX_VIRTUAL
  61.  
  62. // Implementation
  63. protected:
  64.     virtual ~CMFCPViewFast();
  65.  
  66. private:
  67.     void GetOrders();
  68.     void GetDetails();
  69.  
  70. #ifdef _DEBUG
  71. public:
  72.     virtual void AssertValid() const;
  73.     virtual void Dump(CDumpContext& dc) const;
  74. #endif
  75.  
  76. protected:
  77.     // Generated message map functions
  78.     //{{AFX_MSG(CMFCPViewFast)
  79.     afx_msg void OnRowColChangeOrders();
  80.     DECLARE_EVENTSINK_MAP()
  81.     //}}AFX_MSG
  82.     DECLARE_MESSAGE_MAP()
  83. };
  84.  
  85. #ifndef _DEBUG  // debug version in MFCPViewFast.cpp
  86. inline CMFCPDocFast* CMFCPViewFast::GetDocument()
  87.    { return (CMFCPDocFast*)m_pDocument; }
  88. #endif
  89.  
  90. /////////////////////////////////////////////////////////////////////////////
  91.