Source code of Windows XP (NT5)
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.

77 lines
2.4 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. // Inlines for AFXDAO.H
  11. /////////////////////////////////////////////////////////////////////////////
  12. // General database inlines
  13. #ifdef _AFXDAOCORE_INLINE
  14. // CDaoWorkspace inlines
  15. _AFXDAOCORE_INLINE BOOL CDaoWorkspace::IsOpen() const
  16. { ASSERT_VALID(this); return m_bOpen; }
  17. _AFXDAOCORE_INLINE BOOL CDaoWorkspace::IsNew() const
  18. { ASSERT_VALID(this); return m_bNew; }
  19. // CDaoDatabase inlines
  20. _AFXDAOCORE_INLINE BOOL CDaoDatabase::IsOpen() const
  21. { ASSERT_VALID(this); return m_bOpen; }
  22. // CDaoTableDef inlines
  23. _AFXDAOCORE_INLINE BOOL CDaoTableDef::IsOpen() const
  24. { ASSERT_VALID(this); return m_bOpen; }
  25. // CDaoQueryDef inlines
  26. _AFXDAOCORE_INLINE BOOL CDaoQueryDef::IsOpen() const
  27. { ASSERT_VALID(this); return m_bOpen; }
  28. // CDaoRecordset inlines
  29. _AFXDAOCORE_INLINE BOOL CDaoRecordset::IsOpen() const
  30. { ASSERT_VALID(this); return m_bOpen; }
  31. #endif // _AFXDAOCORE_INLINE
  32. #ifdef _AFXDAODFX_INLINE
  33. // CDaoFieldExchange
  34. _AFXDAODFX_INLINE void CDaoFieldExchange::SetFieldType(UINT nFieldType)
  35. { ASSERT(nFieldType == outputColumn || nFieldType == param);
  36. m_nFieldType = nFieldType; }
  37. #endif // _AFXDAODFX_INLINE
  38. #ifdef _AFXDAOVIEW_INLINE
  39. // CDaoRecordView inlines
  40. _AFXDAOVIEW_INLINE void CDaoRecordView::OnUpdateRecordFirst(CCmdUI* pCmdUI)
  41. { ASSERT_VALID(this);
  42. pCmdUI->Enable(m_nStatus & AFX_DAOVIEW_SCROLL_BACKWARD); }
  43. _AFXDAOVIEW_INLINE void CDaoRecordView::OnUpdateRecordNext(CCmdUI* pCmdUI)
  44. { ASSERT_VALID(this);
  45. pCmdUI->Enable(m_nStatus & AFX_DAOVIEW_SCROLL_NEXT); }
  46. _AFXDAOVIEW_INLINE void CDaoRecordView::OnUpdateRecordPrev(CCmdUI* pCmdUI)
  47. { ASSERT_VALID(this);
  48. pCmdUI->Enable(m_nStatus & AFX_DAOVIEW_SCROLL_BACKWARD); }
  49. _AFXDAOVIEW_INLINE void CDaoRecordView::OnUpdateRecordLast(CCmdUI* pCmdUI)
  50. { ASSERT_VALID(this);
  51. pCmdUI->Enable(m_nStatus & AFX_DAOVIEW_SCROLL_LAST); }
  52. _AFXDAOVIEW_INLINE void CDaoRecordView::OnMove(int cx, int cy)
  53. { CFormView::OnMove(cx, cy); }
  54. #endif // _AFXDAOVIEW_INLINE
  55. /////////////////////////////////////////////////////////////////////////////