home *** CD-ROM | disk | FTP | other *** search
/ Looney Tunes Photo Fun / LooneyTunesPhotoFun.iso / Daosdk / DISK4 / DAOSDK.1 / gridctrl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-06  |  3.9 KB  |  137 lines

  1. #ifndef __GRIDCTRL_H__
  2. #define __GRIDCTRL_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. // CGridCtrl wrapper class
  11.  
  12. class CGridCtrl : public CWnd
  13. {
  14. protected:
  15.     DECLARE_DYNCREATE(CGridCtrl)
  16. public:
  17.     CLSID const& GetClsid()
  18.     {
  19.         static CLSID const clsid
  20.             = { 0xa8c3b720, 0xb5a, 0x101b, { 0xb2, 0x2e, 0x0, 0xaa, 0x0, 0x37, 0xb2, 0xfc } };
  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.     CString Get_Text();
  40.     void Set_Text(LPCTSTR);
  41.     CString GetText();
  42.     void SetText(LPCTSTR);
  43.     CString GetFontName();
  44.     void SetFontName(LPCTSTR);
  45.     float GetFontSize();
  46.     void SetFontSize(float);
  47.     BOOL GetFontBold();
  48.     void SetFontBold(BOOL);
  49.     BOOL GetFontItalic();
  50.     void SetFontItalic(BOOL);
  51.     BOOL GetFontStrikethru();
  52.     void SetFontStrikethru(BOOL);
  53.     BOOL GetFontUnderline();
  54.     void SetFontUnderline(BOOL);
  55.     short GetRows();
  56.     void SetRows(short);
  57.     short GetCols();
  58.     void SetCols(short);
  59.     short GetFixedRows();
  60.     void SetFixedRows(short);
  61.     short GetFixedCols();
  62.     void SetFixedCols(short);
  63.     short GetRow();
  64.     void SetRow(short);
  65.     short GetCol();
  66.     void SetCol(short);
  67.     long GetScrollBars();
  68.     void SetScrollBars(long);
  69.     BOOL GetCellSelected();
  70.     void SetCellSelected(BOOL);
  71.     CString GetClip();
  72.     void SetClip(LPCTSTR);
  73.     short GetSelStartRow();
  74.     void SetSelStartRow(short);
  75.     short GetSelEndRow();
  76.     void SetSelEndRow(short);
  77.     short GetSelStartCol();
  78.     void SetSelStartCol(short);
  79.     short GetSelEndCol();
  80.     void SetSelEndCol(short);
  81.     LPDISPATCH GetPicture();
  82.     void SetPicture(LPDISPATCH);
  83.     BOOL GetGridLines();
  84.     void SetGridLines(BOOL);
  85.     short GetTopRow();
  86.     void SetTopRow(short);
  87.     short GetLeftCol();
  88.     void SetLeftCol(short);
  89.     BOOL GetHighLight();
  90.     void SetHighLight(BOOL);
  91.     short GetGridLineWidth();
  92.     void SetGridLineWidth(short);
  93.     OLE_COLOR GetBackColor();
  94.     void SetBackColor(OLE_COLOR);
  95.     OLE_COLOR GetForeColor();
  96.     void SetForeColor(OLE_COLOR);
  97.     BOOL GetEnabled();
  98.     void SetEnabled(BOOL);
  99.     OLE_HANDLE GetHWnd();
  100.     void SetHWnd(OLE_HANDLE);
  101.     LPFONTDISP GetFont();
  102.     void SetFont(LPFONTDISP);
  103.     long GetFillStyle();
  104.     void SetFillStyle(long);
  105.     long GetBorderStyle();
  106.     void SetBorderStyle(long);
  107.     long GetMousePointer();
  108.     void SetMousePointer(long);
  109.     LPDISPATCH GetMouseIcon();
  110.     void SetMouseIcon(LPDISPATCH);
  111.  
  112. // Operations
  113. public:
  114.     void AboutBox();
  115.     long GetRowHeight(short Index);
  116.     void SetRowHeight(short Index, long nNewValue);
  117.     long GetColWidth(short Index);
  118.     void SetColWidth(short Index, long nNewValue);
  119.     short GetColAlignment(short Index);
  120.     void SetColAlignment(short Index, short nNewValue);
  121.     short GetFixedAlignment(short Index);
  122.     void SetFixedAlignment(short Index, short nNewValue);
  123.     long GetRowPos(short Index);
  124.     void SetRowPos(short Index, long nNewValue);
  125.     long GetColPos(short Index);
  126.     void SetColPos(short Index, long nNewValue);
  127.     BOOL GetRowIsVisible(short Index);
  128.     void SetRowIsVisible(short Index, BOOL bNewValue);
  129.     BOOL GetColIsVisible(short Index);
  130.     void SetColIsVisible(short Index, BOOL bNewValue);
  131.     short AddItem(LPCTSTR Item, const VARIANT& Index);
  132.     short RemoveItem(short RemRow);
  133.     void Refresh();
  134. };
  135.  
  136. #endif // __GRIDCTRL_H__
  137.