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

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