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

  1. #ifndef __MSDGRIDCTRL_H__
  2. #define __MSDGRIDCTRL_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. /////////////////////////////////////////////////////////////////////////////
  11. // CMsDgridCtrl wrapper class
  12.  
  13. class CMsDgridCtrl : public CWnd
  14. {
  15. protected:
  16.     DECLARE_DYNCREATE(CMsDgridCtrl)
  17. public:
  18.     CLSID const& GetClsid()
  19.     {
  20.         static CLSID const clsid
  21.             = { 0x28c00, 0x0, 0x0, { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x46 } };
  22.         return clsid;
  23.     }
  24.     virtual BOOL Create(LPCTSTR lpszClassName,
  25.         LPCTSTR lpszWindowName, DWORD dwStyle,
  26.         const RECT& rect,
  27.         CWnd* pParentWnd, UINT nID,
  28.         CCreateContext* pContext = NULL)
  29.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  30.  
  31.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  32.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  33.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  34.         BSTR bstrLicKey = NULL)
  35.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  36.         pPersist, bStorage, bstrLicKey); }
  37.  
  38. // Attributes
  39. public:
  40.     BOOL GetAllowDelete();
  41.     void SetAllowDelete(BOOL);
  42.     BOOL GetAllowAddNew();
  43.     void SetAllowAddNew(BOOL);
  44.     BOOL GetAllowRowSizing();
  45.     void SetAllowRowSizing(BOOL);
  46.     BOOL GetAllowUpdate();
  47.     void SetAllowUpdate(BOOL);
  48.     short GetBorderStyle();
  49.     void SetBorderStyle(short);
  50.     VARIANT GetBookmark();
  51.     void SetBookmark(const VARIANT&);
  52.     short GetCol();
  53.     void SetCol(short);
  54.     BOOL GetColumnHeaders();
  55.     void SetColumnHeaders(BOOL);
  56.     long GetDataMode();
  57.     void SetDataMode(long);
  58.     LPUNKNOWN GetDataSource();
  59.     void SetDataSource(LPUNKNOWN);
  60.     float GetDefColWidth();
  61.     void SetDefColWidth(float);
  62.     BOOL GetEnabled();
  63.     void SetEnabled(BOOL);
  64.     VARIANT GetFirstRow();
  65.     void SetFirstRow(const VARIANT&);
  66.     LPDISPATCH GetHeadFont();
  67.     void SetHeadFont(LPDISPATCH);
  68.     float GetHeadLines();
  69.     void SetHeadLines(float);
  70.     OLE_HANDLE GetHWnd();
  71.     BOOL GetRecordSelectors();
  72.     void SetRecordSelectors(BOOL);
  73.     short GetRow();
  74.     void SetRow(short);
  75.     long GetRowDividerStyle();
  76.     void SetRowDividerStyle(long);
  77.     float GetRowHeight();
  78.     void SetRowHeight(float);
  79.     long GetScrollBars();
  80.     void SetScrollBars(long);
  81.     short GetSelStartCol();
  82.     void SetSelStartCol(short);
  83.     short GetSelEndCol();
  84.     void SetSelEndCol(short);
  85.     short GetVisibleCols();
  86.     short GetVisibleRows();
  87.     OLE_COLOR GetBackColor();
  88.     void SetBackColor(OLE_COLOR);
  89.     OLE_COLOR GetForeColor();
  90.     void SetForeColor(OLE_COLOR);
  91.     CString GetCaption();
  92.     void SetCaption(LPCTSTR);
  93.     LPFONTDISP GetFont();
  94.     void SetFont(LPFONTDISP);
  95.     short GetLeftCol();
  96.     void SetLeftCol(short);
  97.  
  98. // Operations
  99. public:
  100.     void AboutBox();
  101.     LPDISPATCH GetColumns(const VARIANT& Index);
  102.     VARIANT GetSelBookmarks(const VARIANT& Index);
  103.     short ColContaining(float X);
  104.     VARIANT GetBookmark(long RowNum);
  105.     void ReBind();
  106.     VARIANT RowBookmark(short RowNum);
  107.     short RowContaining(float Y);
  108.     float RowTop(short RowNum);
  109.     void Scroll(long Cols, long Rows);
  110.     void Refresh();
  111.     LPDISPATCH CaptureImage();
  112. };
  113.  
  114. #endif // __MSDGRIDCTRL_H__
  115.