Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

137 lines
3.1 KiB

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1998 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and related
  7. // electronic documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10. #ifndef __AFXOLEDB_H__
  11. #define __AFXOLEDB_H__
  12. #ifdef _AFX_NO_DAO_SUPPORT
  13. #error OLE DB classes not supported in this library variant.
  14. #endif
  15. #ifndef __AFXEXT_H__
  16. #include <afxext.h>
  17. #endif
  18. #include <atlbase.h>
  19. // application is expected to provide a _Module
  20. extern CComModule _Module;
  21. #include <atlcom.h>
  22. #include <atldbcli.h>
  23. #ifdef _AFX_MINREBUILD
  24. #pragma component(minrebuild, off)
  25. #endif
  26. #ifndef _AFX_FULLTYPEINFO
  27. #pragma component(mintypeinfo, on)
  28. #endif
  29. /////////////////////////////////////////////////////////////////////////////
  30. // Win32 libraries
  31. #ifndef _AFX_NOFORCE_LIBS
  32. #ifdef _AFXDLL
  33. #if defined(_DEBUG) && !defined(_AFX_MONOLITHIC)
  34. #ifndef _UNICODE
  35. #pragma comment(lib, "mfco42d.lib")
  36. #pragma comment(lib, "mfcd42d.lib")
  37. #else
  38. #pragma comment(lib, "mfco42ud.lib")
  39. #pragma comment(lib, "mfcd42ud.lib")
  40. #endif
  41. #endif
  42. #endif
  43. #endif
  44. #ifdef _AFX_PACKING
  45. #pragma pack(push, _AFX_PACKING)
  46. #endif
  47. /////////////////////////////////////////////////////////////////////////////
  48. //CObject
  49. //CCmdTarget;
  50. //CWnd
  51. //CView
  52. //CScrollView
  53. //CFormView
  54. class COleDBRecordView; // view records with a form
  55. /////////////////////////////////////////////////////////////////////////////
  56. #undef AFX_DATA
  57. #define AFX_DATA AFX_DB_DATA
  58. /////////////////////////////////////////////////////////////////////////////
  59. // CRecordView - form for viewing data records
  60. class COleDBRecordView : public CFormView
  61. {
  62. DECLARE_DYNAMIC(COleDBRecordView)
  63. // Construction
  64. protected: // must derive your own class
  65. COleDBRecordView(LPCTSTR lpszTemplateName)
  66. : CFormView(lpszTemplateName)
  67. {
  68. m_bOnFirstRecord = TRUE;
  69. m_bOnLastRecord = FALSE;
  70. }
  71. COleDBRecordView(UINT nIDTemplate)
  72. : CFormView(nIDTemplate)
  73. {
  74. m_bOnFirstRecord = TRUE;
  75. m_bOnLastRecord = FALSE;
  76. }
  77. // Attributes
  78. public:
  79. virtual CRowset* OnGetRowset() = 0;
  80. // Operations
  81. public:
  82. virtual BOOL OnMove(UINT nIDMoveCommand);
  83. // Implementation
  84. public:
  85. virtual void OnInitialUpdate();
  86. protected:
  87. BOOL m_bOnFirstRecord;
  88. BOOL m_bOnLastRecord;
  89. //{{AFX_MSG(CRecordView)
  90. afx_msg void OnUpdateRecordFirst(CCmdUI* pCmdUI);
  91. afx_msg void OnUpdateRecordPrev(CCmdUI* pCmdUI);
  92. afx_msg void OnUpdateRecordNext(CCmdUI* pCmdUI);
  93. afx_msg void OnUpdateRecordLast(CCmdUI* pCmdUI);
  94. //}}AFX_MSG
  95. DECLARE_MESSAGE_MAP()
  96. };
  97. /////////////////////////////////////////////////////////////////////////////
  98. #ifdef _AFX_PACKING
  99. #pragma pack(pop)
  100. #endif
  101. #undef AFX_DATA
  102. #define AFX_DATA
  103. #ifdef _AFX_MINREBUILD
  104. #pragma component(minrebuild, on)
  105. #endif
  106. #ifndef _AFX_FULLTYPEINFO
  107. #pragma component(mintypeinfo, off)
  108. #endif
  109. #endif __AFXOLEDB_H__