home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / database / bindenrl / dblist.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  3KB  |  93 lines

  1. #ifndef __DBLIST_H__
  2. #define __DBLIST_H__
  3.  
  4. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  5.  
  6. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  7. //  Microsoft Visual C++, your modifications will be overwritten.
  8.  
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CDBList wrapper class
  11.  
  12. class CDBList : public CWnd
  13. {
  14. protected:
  15.     DECLARE_DYNCREATE(CDBList)
  16. public:
  17.     CLSID const& GetClsid()
  18.     {
  19.         static CLSID const clsid
  20.             = { 0x2a69b00, 0x81b, 0x101b, { 0x89, 0x33, 0x8, 0x0, 0x2b, 0x2f, 0x4f, 0x5a } };
  21.         return clsid;
  22.     }
  23.     virtual BOOL Create(LPCTSTR lpszClassName,
  24.         LPCTSTR lpszWindowName, DWORD dwStyle,
  25.         const RECT& rect,
  26.         CWnd* pParentWnd, UINT nID,
  27.         CCreateContext* pContext = NULL)
  28.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  29.  
  30.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  31.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  32.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  33.         BSTR bstrLicKey = NULL)
  34.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  35.         pPersist, bStorage, bstrLicKey); }
  36.  
  37. // Attributes
  38. public:
  39.  
  40. // Operations
  41. public:
  42.     BOOL GetLocked();
  43.     void SetLocked(BOOL bNewValue);
  44.     CString GetBoundText();
  45.     void SetBoundText(LPCTSTR lpszNewValue);
  46.     LPDISPATCH GetRowSource();
  47.     void SetRowSource(LPDISPATCH newValue);
  48.     CString GetBoundColumn();
  49.     void SetBoundColumn(LPCTSTR lpszNewValue);
  50.     long GetMousePointer();
  51.     void SetMousePointer(long nNewValue);
  52.     LPDISPATCH GetMouseIcon();
  53.     void SetMouseIcon(LPDISPATCH newValue);
  54.     void SetRefMouseIcon(LPDISPATCH newValue);
  55.     BOOL GetIntegralHeight();
  56.     void SetIntegralHeight(BOOL bNewValue);
  57.     long GetMatchEntry();
  58.     void SetMatchEntry(long nNewValue);
  59.     VARIANT GetSelectedItem();
  60.     short GetVisibleCount();
  61.     CString GetText();
  62.     void SetText(LPCTSTR lpszNewValue);
  63.     CString GetListField();
  64.     void SetListField(LPCTSTR lpszNewValue);
  65.     LPDISPATCH GetFont();
  66.     void SetRefFont(LPDISPATCH newValue);
  67.     BOOL GetEnabled();
  68.     void SetEnabled(BOOL bNewValue);
  69.     unsigned long GetBackColor();
  70.     void SetBackColor(unsigned long newValue);
  71.     unsigned long GetForeColor();
  72.     void SetForeColor(unsigned long newValue);
  73.     BOOL GetMatchedWithList();
  74.     long GetAppearance();
  75.     void SetAppearance(long nNewValue);
  76.     BOOL GetRightToLeft();
  77.     void SetRightToLeft(BOOL bNewValue);
  78.     long GetHwnd();
  79.     long GetOLEDragMode();
  80.     void SetOLEDragMode(long nNewValue);
  81.     long GetOLEDropMode();
  82.     void SetOLEDropMode(long nNewValue);
  83.     void ReFill();
  84.     VARIANT GetVisibleItems(short nIndex);
  85.     void Refresh();
  86.     void OLEDrag();
  87. };
  88.  
  89. //{{AFX_INSERT_LOCATION}}
  90. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  91.  
  92. #endif // __DBLIST_H__
  93.