home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / MFCINC.PAK / AFXDAO.INL < prev    next >
Encoding:
Text File  |  1997-05-06  |  2.4 KB  |  76 lines

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1995 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.  
  11. // Inlines for AFXDAO.H
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // General database inlines
  15.  
  16. #ifdef _AFXDAOCORE_INLINE
  17.  
  18. // CDaoWorkspace inlines
  19. _AFXDAOCORE_INLINE BOOL CDaoWorkspace::IsOpen() const
  20.     { ASSERT_VALID(this); return m_bOpen; }
  21.  
  22. // CDaoDatabase inlines
  23. _AFXDAOCORE_INLINE BOOL CDaoDatabase::IsOpen() const
  24.     { ASSERT_VALID(this); return m_bOpen; }
  25.  
  26. // CDaoTableDef inlines
  27. _AFXDAOCORE_INLINE BOOL CDaoTableDef::IsOpen() const
  28.     { ASSERT_VALID(this); return m_bOpen; }
  29.  
  30. // CDaoQueryDef inlines
  31. _AFXDAOCORE_INLINE BOOL CDaoQueryDef::IsOpen() const
  32.     { ASSERT_VALID(this); return m_bOpen; }
  33.  
  34. // CDaoRecordset inlines
  35. _AFXDAOCORE_INLINE BOOL CDaoRecordset::IsOpen() const
  36.     { ASSERT_VALID(this); return m_bOpen; }
  37.  
  38. #endif // _AFXDAOCORE_INLINE
  39.  
  40.  
  41. #ifdef _AFXDAODFX_INLINE
  42.  
  43. // CDaoFieldExchange
  44. _AFXDAODFX_INLINE void CDaoFieldExchange::SetFieldType(UINT nFieldType)
  45. { ASSERT(nFieldType == outputColumn || nFieldType == param);
  46.         m_nFieldType = nFieldType; }
  47.  
  48. #endif // _AFXDAODFX_INLINE
  49.  
  50.  
  51. #ifdef _AFXDAOVIEW_INLINE
  52.  
  53. // CDaoRecordView inlines
  54. _AFXDAOVIEW_INLINE void CDaoRecordView::OnUpdateRecordFirst(CCmdUI* pCmdUI)
  55.     { ASSERT_VALID(this);
  56.         pCmdUI->Enable(m_nStatus & AFX_DAOVIEW_SCROLL_BACKWARD); }
  57.  
  58. _AFXDAOVIEW_INLINE void CDaoRecordView::OnUpdateRecordNext(CCmdUI* pCmdUI)
  59.     { ASSERT_VALID(this);
  60.         pCmdUI->Enable(m_nStatus & AFX_DAOVIEW_SCROLL_NEXT); }
  61.  
  62. _AFXDAOVIEW_INLINE void CDaoRecordView::OnUpdateRecordPrev(CCmdUI* pCmdUI)
  63.     { ASSERT_VALID(this);
  64.         pCmdUI->Enable(m_nStatus & AFX_DAOVIEW_SCROLL_BACKWARD); }
  65.  
  66. _AFXDAOVIEW_INLINE void CDaoRecordView::OnUpdateRecordLast(CCmdUI* pCmdUI)
  67.     { ASSERT_VALID(this);
  68.         pCmdUI->Enable(m_nStatus & AFX_DAOVIEW_SCROLL_LAST); }
  69.  
  70. _AFXDAOVIEW_INLINE void CDaoRecordView::OnMove(int cx, int cy)
  71.     { CFormView::OnMove(cx, cy); }
  72.  
  73. #endif // _AFXDAOVIEW_INLINE
  74.  
  75. /////////////////////////////////////////////////////////////////////////////
  76.