gridctrl.h
上传用户:hzwailv
上传日期:2010-01-09
资源大小:405k
文件大小:4k
- #if !defined(AFX_GRIDCTRL_H__6A48C940_6EB4_11D3_92B5_0000E826141B__INCLUDED_)
- #define AFX_GRIDCTRL_H__6A48C940_6EB4_11D3_92B5_0000E826141B__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
- // NOTE: Do not modify the contents of this file. If this class is regenerated by
- // Microsoft Visual C++, your modifications will be overwritten.
- /////////////////////////////////////////////////////////////////////////////
- // CGridCtrl wrapper class
- class CGridCtrl : public CWnd
- {
- protected:
- DECLARE_DYNCREATE(CGridCtrl)
- public:
- CLSID const& GetClsid()
- {
- static CLSID const clsid
- = { 0xa8c3b720, 0xb5a, 0x101b, { 0xb2, 0x2e, 0x0, 0xaa, 0x0, 0x37, 0xb2, 0xfc } };
- return clsid;
- }
- virtual BOOL Create(LPCTSTR lpszClassName,
- LPCTSTR lpszWindowName, DWORD dwStyle,
- const RECT& rect,
- CWnd* pParentWnd, UINT nID,
- CCreateContext* pContext = NULL)
- { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
- BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
- const RECT& rect, CWnd* pParentWnd, UINT nID,
- CFile* pPersist = NULL, BOOL bStorage = FALSE,
- BSTR bstrLicKey = NULL)
- { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
- pPersist, bStorage, bstrLicKey); }
- // Attributes
- public:
- CString GetText();
- void SetText(LPCTSTR);
- short GetRows();
- void SetRows(short);
- short GetCols();
- void SetCols(short);
- short GetFixedRows();
- void SetFixedRows(short);
- short GetFixedCols();
- void SetFixedCols(short);
- short GetRow();
- void SetRow(short);
- short GetCol();
- void SetCol(short);
- long GetScrollBars();
- void SetScrollBars(long);
- BOOL GetCellSelected();
- void SetCellSelected(BOOL);
- CString GetClip();
- void SetClip(LPCTSTR);
- short GetSelStartRow();
- void SetSelStartRow(short);
- short GetSelEndRow();
- void SetSelEndRow(short);
- short GetSelStartCol();
- void SetSelStartCol(short);
- short GetSelEndCol();
- void SetSelEndCol(short);
- LPDISPATCH GetPicture();
- void SetPicture(LPDISPATCH);
- BOOL GetGridLines();
- void SetGridLines(BOOL);
- short GetTopRow();
- void SetTopRow(short);
- short GetLeftCol();
- void SetLeftCol(short);
- BOOL GetHighLight();
- void SetHighLight(BOOL);
- short GetGridLineWidth();
- void SetGridLineWidth(short);
- OLE_COLOR GetBackColor();
- void SetBackColor(OLE_COLOR);
- OLE_COLOR GetForeColor();
- void SetForeColor(OLE_COLOR);
- BOOL GetEnabled();
- void SetEnabled(BOOL);
- OLE_HANDLE GetHWnd();
- void SetHWnd(OLE_HANDLE);
- LPFONTDISP GetFont();
- void SetFont(LPFONTDISP);
- long GetFillStyle();
- void SetFillStyle(long);
- long GetBorderStyle();
- void SetBorderStyle(long);
- long GetMousePointer();
- void SetMousePointer(long);
- LPDISPATCH GetMouseIcon();
- void SetMouseIcon(LPDISPATCH);
- // Operations
- public:
- void AboutBox();
- long GetRowHeight(short Index);
- void SetRowHeight(short Index, long nNewValue);
- long GetColWidth(short Index);
- void SetColWidth(short Index, long nNewValue);
- short GetColAlignment(short Index);
- void SetColAlignment(short Index, short nNewValue);
- short GetFixedAlignment(short Index);
- void SetFixedAlignment(short Index, short nNewValue);
- long GetRowPos(short Index);
- void SetRowPos(short Index, long nNewValue);
- long GetColPos(short Index);
- void SetColPos(short Index, long nNewValue);
- BOOL GetRowIsVisible(short Index);
- void SetRowIsVisible(short Index, BOOL bNewValue);
- BOOL GetColIsVisible(short Index);
- void SetColIsVisible(short Index, BOOL bNewValue);
- short AddItem(LPCTSTR Item, const VARIANT& Index);
- short RemoveItem(short RemRow);
- void Refresh();
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_GRIDCTRL_H__6A48C940_6EB4_11D3_92B5_0000E826141B__INCLUDED_)