home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / datalist / datalist.exe / %MAINDIR% / SAMPLES / Sample9 / GTLIST.H < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-09  |  7.5 KB  |  238 lines

  1. #ifndef __GTLIST_H__
  2. #define __GTLIST_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. // Dispatch interfaces referenced by this interface
  11. class CPicture;
  12. class COleFont;
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CGTList1 wrapper class
  16.  
  17. class CGTList1 : public CWnd
  18. {
  19. protected:
  20.     DECLARE_DYNCREATE(CGTList1)
  21. public:
  22.     CLSID const& GetClsid()
  23.     {
  24.         static CLSID const clsid
  25.             = { 0x98460700, 0x9149, 0x11cf, { 0xba, 0xdb, 0x0, 0x20, 0x18, 0x2, 0xbb, 0x87 } };
  26.         return clsid;
  27.     }
  28.     virtual BOOL Create(LPCTSTR lpszClassName,
  29.         LPCTSTR lpszWindowName, DWORD dwStyle,
  30.         const RECT& rect,
  31.         CWnd* pParentWnd, UINT nID,
  32.         CCreateContext* pContext = NULL)
  33.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  34.  
  35.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  36.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  37.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  38.         BSTR bstrLicKey = NULL)
  39.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  40.         pPersist, bStorage, bstrLicKey); }
  41.  
  42. // Attributes
  43. public:
  44.     OLE_COLOR GetBackColor();
  45.     void SetBackColor(OLE_COLOR);
  46.     BOOL GetEnabled();
  47.     void SetEnabled(BOOL);
  48.     OLE_HANDLE GetHWnd();
  49.     void SetHWnd(OLE_HANDLE);
  50.     long GetMultiSelect();
  51.     void SetMultiSelect(long);
  52.     CPicture GetPicture();
  53.     void SetPicture(LPDISPATCH);
  54.     long GetPictureAlignment();
  55.     void SetPictureAlignment(long);
  56.     LPDISPATCH GetSelectedItem();
  57.     void SetSelectedItem(LPDISPATCH);
  58.     BOOL GetSorted();
  59.     void SetSorted(BOOL);
  60.     short GetSortKey();
  61.     void SetSortKey(short);
  62.     long GetSortOrder();
  63.     void SetSortOrder(long);
  64.     VARIANT GetTagVariant();
  65.     void SetTagVariant(const VARIANT&);
  66.     BOOL GetAllowColumnDragDrop();
  67.     void SetAllowColumnDragDrop(BOOL);
  68.     BOOL GetAllowColumnResize();
  69.     void SetAllowColumnResize(BOOL);
  70.     CString GetImageList();
  71.     void SetImageList(LPCTSTR);
  72.     long GetListCount();
  73.     void SetListCount(long);
  74.     long GetNewIndex();
  75.     void SetNewIndex(long);
  76.     unsigned long GetScrollTipBackColor();
  77.     void SetScrollTipBackColor(unsigned long);
  78.     CString GetScrollTipDataField();
  79.     void SetScrollTipDataField(LPCTSTR);
  80.     COleFont GetScrollTipFont();
  81.     void SetScrollTipFont(LPDISPATCH);
  82.     unsigned long GetScrollTipForeColor();
  83.     void SetScrollTipForeColor(unsigned long);
  84.     long GetSelCount();
  85.     void SetSelCount(long);
  86.     CString GetText();
  87.     void SetText(LPCTSTR);
  88.     unsigned long GetExtendTipBackColor();
  89.     void SetExtendTipBackColor(unsigned long);
  90.     CString GetExtendTipDataField();
  91.     void SetExtendTipDataField(LPCTSTR);
  92.     long GetExtendTipDelay();
  93.     void SetExtendTipDelay(long);
  94.     COleFont GetExtendTipFont();
  95.     void SetExtendTipFont(LPDISPATCH);
  96.     unsigned long GetExtendTipForeColor();
  97.     void SetExtendTipForeColor(unsigned long);
  98.     long GetExtendTipTimeout();
  99.     void SetExtendTipTimeout(long);
  100.     long GetTopIndex();
  101.     void SetTopIndex(long);
  102.     long GetVertScrollBar();
  103.     void SetVertScrollBar(long);
  104.     unsigned long GetDefColCaptionBackColor();
  105.     void SetDefColCaptionBackColor(unsigned long);
  106.     long GetDefColCaptionFont3D();
  107.     void SetDefColCaptionFont3D(long);
  108.     COleFont GetDefColCaptionFont();
  109.     void SetDefColCaptionFont(LPDISPATCH);
  110.     long GetDefColCaptionPictureAlignment();
  111.     void SetDefColCaptionPictureAlignment(long);
  112.     unsigned long GetDefColCaptionForeColor();
  113.     void SetDefColCaptionForeColor(unsigned long);
  114.     float GetDefColumnWidth();
  115.     void SetDefColumnWidth(float);
  116.     long GetDefColCaptionBorderStyle();
  117.     void SetDefColCaptionBorderStyle(long);
  118.     float GetDefRowHeight();
  119.     void SetDefRowHeight(float);
  120.     float GetColumnHeaderHeight();
  121.     void SetColumnHeaderHeight(float);
  122.     unsigned long GetDefBackColor();
  123.     void SetDefBackColor(unsigned long);
  124.     COleFont GetDefFont();
  125.     void SetDefFont(LPDISPATCH);
  126.     long GetDefFont3D();
  127.     void SetDefFont3D(long);
  128.     unsigned long GetDefForeColor();
  129.     void SetDefForeColor(unsigned long);
  130.     long GetDefPictureAlignment();
  131.     void SetDefPictureAlignment(long);
  132.     long GetDefTextAlignment();
  133.     void SetDefTextAlignment(long);
  134.     LPUNKNOWN GetDataSource();
  135.     void SetDataSource(LPUNKNOWN);
  136.     long GetAppearance();
  137.     void SetAppearance(long);
  138.     BOOL GetCalcRowCountOnLoad();
  139.     void SetCalcRowCountOnLoad(BOOL);
  140.     unsigned long GetGridLineColor();
  141.     void SetGridLineColor(unsigned long);
  142.     long GetGridLineType();
  143.     void SetGridLineType(long);
  144.     long GetGridLineStyle();
  145.     void SetGridLineStyle(long);
  146.     long GetBorderStyle();
  147.     void SetBorderStyle(long);
  148.     short GetSubRows();
  149.     void SetSubRows(short);
  150.     unsigned long GetDefForeColorOdd();
  151.     void SetDefForeColorOdd(unsigned long);
  152.     unsigned long GetDefBackColorOdd();
  153.     void SetDefBackColorOdd(unsigned long);
  154.     CString Get_Text();
  155.     void Set_Text(LPCTSTR);
  156.     BOOL GetSubRowsStatic();
  157.     void SetSubRowsStatic(BOOL);
  158.     BOOL GetColumnResizeElastic();
  159.     void SetColumnResizeElastic(BOOL);
  160.     short GetSortKey2();
  161.     void SetSortKey2(short);
  162.     short GetSortKey3();
  163.     void SetSortKey3(short);
  164.     BOOL GetScrollTips();
  165.     void SetScrollTips(BOOL);
  166.     BOOL GetExtendTips();
  167.     void SetExtendTips(BOOL);
  168.     long GetDefWordWrap();
  169.     void SetDefWordWrap(long);
  170.     long GetDefColCaptionTextAlignment();
  171.     void SetDefColCaptionTextAlignment(long);
  172.     long GetDefColCaptionWordWrap();
  173.     void SetDefColCaptionWordWrap(long);
  174.     BOOL GetVirtual();
  175.     void SetVirtual(BOOL);
  176.     long GetVirtualItemCount();
  177.     void SetVirtualItemCount(long);
  178.     long GetSortOrder2();
  179.     void SetSortOrder2(long);
  180.     long GetSortOrder3();
  181.     void SetSortOrder3(long);
  182.     BOOL GetAllowColumnSortClick();
  183.     void SetAllowColumnSortClick(BOOL);
  184.     long GetListIndex();
  185.     void SetListIndex(long);
  186.     unsigned long GetMaskColor();
  187.     void SetMaskColor(unsigned long);
  188.     BOOL GetMaskColorEnabled();
  189.     void SetMaskColorEnabled(BOOL);
  190.     long GetDynamicCols();
  191.     void SetDynamicCols(long);
  192.     long GetHorzScrollBar();
  193.     void SetHorzScrollBar(long);
  194.     BOOL GetColumnCaptions();
  195.     void SetColumnCaptions(BOOL);
  196.     CPicture GetMouseIcon();
  197.     void SetMouseIcon(LPDISPATCH);
  198.     long GetMousePointer();
  199.     void SetMousePointer(long);
  200.     VARIANT GetBookmark();
  201.     void SetBookmark(const VARIANT&);
  202.     VARIANT GetTopBookmark();
  203.     void SetTopBookmark(const VARIANT&);
  204.     unsigned long GetSelectedBackColor();
  205.     void SetSelectedBackColor(unsigned long);
  206.     unsigned long GetSelectedForeColor();
  207.     void SetSelectedForeColor(unsigned long);
  208.  
  209. // Operations
  210. public:
  211.     BOOL GetSelected(long Index);
  212.     void SetSelected(long Index, BOOL bNewValue);
  213.     long GetItemData(long Index);
  214.     void SetItemData(long Index, long nNewValue);
  215.     LPDISPATCH GetListItems(const VARIANT& Index);
  216.     void SetListItems(const VARIANT& Index, LPDISPATCH newValue);
  217.     LPDISPATCH GetColumnDefs(const VARIANT& Index);
  218.     void SetColumnDefs(const VARIANT& Index, LPDISPATCH newValue);
  219.     LPDISPATCH GetListImages(const VARIANT& Index);
  220.     void SetListImages(const VARIANT& Index, LPDISPATCH newValue);
  221.     void Clear();
  222.     void Refresh();
  223.     void RemoveItem(long Index);
  224.     void AddItem(LPCTSTR Item, const VARIANT& Index);
  225.     void ClearCache();
  226.     short GetLeftColumn(const VARIANT& SubRow);
  227.     void SetLeftColumn(const VARIANT& SubRow, short nNewValue);
  228.     short HitTest(float x, float y);
  229.     short HitTestItem(float x, float y, LPDISPATCH* ListItem, LPDISPATCH* SubItem);
  230.     VARIANT GetSelBookmarks(long Index);
  231.     void SetSelBookmarks(long Index, const VARIANT& newValue);
  232.     long GetSelIndices(long Index);
  233.     void SetSelIndices(long Index, long nNewValue);
  234.     void AboutBox();
  235. };
  236.  
  237. #endif // __GTLIST_H__
  238.