home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / database / daoview / dragitem.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.4 KB  |  53 lines

  1. // DragItem.h : header file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CDragItem window
  15.  
  16. class CDragItem : public CObject
  17. {
  18. public:
  19. // Flag values
  20.     enum Mode { itemNull = 0,itemTable = 1,itemQuery = 2,itemRelation = 3 };
  21.  
  22. // Construction
  23.     CDragItem();
  24.     CDragItem(WORD nItemType, LPCTSTR lpszDBName, LPCTSTR lpszDBConnect,
  25.         LPCTSTR lpszItemName );
  26.  
  27. // Attributes
  28. public:
  29.     WORD m_nItemType;
  30.     CString m_strDBName;
  31.     CString m_strDBConnect;
  32.     CString m_strItemName;
  33.  
  34.     virtual void Serialize( CArchive& ar );
  35.  
  36. // Operations
  37. public:
  38.     BOOL Transfer(CDaoTreeView* pTreeView,CDaoDatabase* pDBTarget);
  39.     BOOL CopyTable(CDaoDatabase* pDBSource,CDaoDatabase* pDBTarget);
  40.     BOOL CopyQueryDef(CDaoDatabase* pDBSource,CDaoDatabase* pDBTarget);
  41.  
  42. // Overrides
  43.  
  44. // Implementation
  45. public:
  46.     virtual ~CDragItem();
  47.  
  48.     // Generated message map functions
  49. protected:
  50. };
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53.