home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / mfc / include / afxdao.inl < prev    next >
Text File  |  1998-06-16  |  3KB  |  78 lines

  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.  
  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. _AFXDAOCORE_INLINE BOOL CDaoWorkspace::IsNew() const
  22.     { ASSERT_VALID(this); return m_bNew; }
  23.  
  24. // CDaoDatabase inlines
  25. _AFXDAOCORE_INLINE BOOL CDaoDatabase::IsOpen() const
  26.     { ASSERT_VALID(this); return m_bOpen; }
  27.  
  28. // CDaoTableDef inlines
  29. _AFXDAOCORE_INLINE BOOL CDaoTableDef::IsOpen() const
  30.     { ASSERT_VALID(this); return m_bOpen; }
  31.  
  32. // CDaoQueryDef inlines
  33. _AFXDAOCORE_INLINE BOOL CDaoQueryDef::IsOpen() const
  34.     { ASSERT_VALID(this); return m_bOpen; }
  35.  
  36. // CDaoRecordset inlines
  37. _AFXDAOCORE_INLINE BOOL CDaoRecordset::IsOpen() const
  38.     { ASSERT_VALID(this); return m_bOpen; }
  39.  
  40. #endif // _AFXDAOCORE_INLINE
  41.  
  42.  
  43. #ifdef _AFXDAODFX_INLINE
  44.  
  45. // CDaoFieldExchange
  46. _AFXDAODFX_INLINE void CDaoFieldExchange::SetFieldType(UINT nFieldType)
  47. { ASSERT(nFieldType == outputColumn || nFieldType == param);
  48.         m_nFieldType = nFieldType; }
  49.  
  50. #endif // _AFXDAODFX_INLINE
  51.  
  52.  
  53. #ifdef _AFXDAOVIEW_INLINE
  54.  
  55. // CDaoRecordView inlines
  56. _AFXDAOVIEW_INLINE void CDaoRecordView::OnUpdateRecordFirst(CCmdUI* pCmdUI)
  57.     { ASSERT_VALID(this);
  58.         pCmdUI->Enable(m_nStatus & AFX_DAOVIEW_SCROLL_BACKWARD); }
  59.  
  60. _AFXDAOVIEW_INLINE void CDaoRecordView::OnUpdateRecordNext(CCmdUI* pCmdUI)
  61.     { ASSERT_VALID(this);
  62.         pCmdUI->Enable(m_nStatus & AFX_DAOVIEW_SCROLL_NEXT); }
  63.  
  64. _AFXDAOVIEW_INLINE void CDaoRecordView::OnUpdateRecordPrev(CCmdUI* pCmdUI)
  65.     { ASSERT_VALID(this);
  66.         pCmdUI->Enable(m_nStatus & AFX_DAOVIEW_SCROLL_BACKWARD); }
  67.  
  68. _AFXDAOVIEW_INLINE void CDaoRecordView::OnUpdateRecordLast(CCmdUI* pCmdUI)
  69.     { ASSERT_VALID(this);
  70.         pCmdUI->Enable(m_nStatus & AFX_DAOVIEW_SCROLL_LAST); }
  71.  
  72. _AFXDAOVIEW_INLINE void CDaoRecordView::OnMove(int cx, int cy)
  73.     { CFormView::OnMove(cx, cy); }
  74.  
  75. #endif // _AFXDAOVIEW_INLINE
  76.  
  77. /////////////////////////////////////////////////////////////////////////////
  78.