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

  1. // MFCPViewSlow.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 "SOSet.h"
  15. #include "SODet.h"
  16.  
  17. class CMFCPCust;
  18.  
  19. class CMFCPViewSlow : public CRecordView
  20. {
  21. protected: // create from serialization only
  22.     CMFCPViewSlow();
  23.     DECLARE_DYNCREATE(CMFCPViewSlow)
  24.  
  25. public:
  26.     //{{AFX_DATA(CMFCPViewSlow)
  27.     enum { IDD = IDD_MFCPERF_FORM };
  28.     CStatic    m_staticClick;
  29.     CStatic    m_staticToSee;
  30.     CEdit    m_editCountry;
  31.     CEdit    m_editCompany;
  32.     CMFCPCust* m_pSet;
  33.     CMSFlexGrid    m_gridDetails;
  34.     CMSFlexGrid    m_gridOrders;
  35.     //}}AFX_DATA
  36.  
  37. // Attributes
  38. public:
  39.     CMFCPDocSlow* GetDocument();
  40.     CSlowOrdersSet*     m_pOrders;
  41.     CSlowOrdersDetail*  m_pOrdersDetail;
  42.  
  43. private:
  44.     BOOL                m_bInFill;
  45.  
  46. // Operations
  47. public:
  48.  
  49. // Overrides
  50.     // ClassWizard generated virtual function overrides
  51.     //{{AFX_VIRTUAL(CMFCPViewSlow)
  52.     public:
  53.     virtual CRecordset* OnGetRecordset();
  54.     virtual BOOL OnMove(UINT nIDMoveCommand);
  55.     protected:
  56.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  57.     virtual void OnInitialUpdate(); // called first time after construct
  58.     //}}AFX_VIRTUAL
  59.  
  60. // Implementation
  61. public:
  62.     virtual ~CMFCPViewSlow();
  63.  
  64. private:
  65.     void GetOrders();
  66.     void GetDetails();
  67.  
  68. #ifdef _DEBUG
  69. public:
  70.     virtual void AssertValid() const;
  71.     virtual void Dump(CDumpContext& dc) const;
  72. #endif
  73.  
  74. // Generated message map functions
  75. protected:
  76.     //{{AFX_MSG(CMFCPViewSlow)
  77.     afx_msg void OnRowColChangeOrders();
  78.     DECLARE_EVENTSINK_MAP()
  79.     //}}AFX_MSG
  80.     DECLARE_MESSAGE_MAP()
  81. };
  82.  
  83. #ifndef _DEBUG  // debug version in MFCPViewSlow.cpp
  84. inline CMFCPDocSlow* CMFCPViewSlow::GetDocument()
  85.    { return (CMFCPDocSlow*)m_pDocument; }
  86. #endif
  87.  
  88. /////////////////////////////////////////////////////////////////////////////
  89.