⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 supergridview.h

📁 supermap objects 二次开发的vc文件相关的包
💻 H
字号:
#if !defined(AFX_SUPERGRIDVIEW_H__64778553_3493_4C58_B998_5ACFCA9E9F5D__INCLUDED_)
#define AFX_SUPERGRIDVIEW_H__64778553_3493_4C58_B998_5ACFCA9E9F5D__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.
//GridView Event IDs
#define  SUPERGRIDVIEW_DISPID_ITEM_SELECTED1				0x01

// dispatch id definitions for ole stock events are
// defined in <olectl.h>
// they are included here for reference
#define SUPERGRIDVIEW_DISPID_CLICK                    (-636)
#define SUPERGRIDVIEW_DISPID_DBLCLICK                 (-637)
#define SUPERGRIDVIEW_DISPID_KEYDOWN                  (-638)
#define SUPERGRIDVIEW_DISPID_KEYPRESS                 (-639)
#define SUPERGRIDVIEW_DISPID_KEYUP                    (-640)
#define SUPERGRIDVIEW_DISPID_MOUSEDOWN                (-641)
#define SUPERGRIDVIEW_DISPID_MOUSEMOVE                (-642)
#define SUPERGRIDVIEW_DISPID_MOUSEUP                  (-643)
#define SUPERGRIDVIEW_DISPID_ERROREVENT               (-644)

typedef
enum tagseViewType
{
	 scvGridView		= 0,		
	 scvPropertyView	= 1,
}seViewType;

/////////////////////////////////////////////////////////////////////////////
// CSuperGridView wrapper class

class CSuperGridView : public CWnd
{
protected:
	DECLARE_DYNCREATE(CSuperGridView)
public:
	CLSID const& GetClsid()
	{
		static CLSID const clsid
			= { 0xe237a8b8, 0x3ff, 0x4260, { 0x87, 0xe9, 0x45, 0xda, 0x43, 0xbe, 0x4d, 0xf2 } };
		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:
	unsigned long GetEditableItemBkColor();
	void SetEditableItemBkColor(unsigned long);
	unsigned long GetEditableItemColor();
	void SetEditableItemColor(unsigned long);
	unsigned long GetReadOnlyItemBkColor();
	void SetReadOnlyItemBkColor(unsigned long);
	unsigned long GetReadOnlyItemColor();
	void SetReadOnlyItemColor(unsigned long);
	BOOL GetReadOnly();
	void SetReadOnly(BOOL);
	long GetViewType();
	void SetViewType(long);
	BOOL GetSysFieldVisible();
	void SetSysFieldVisible(BOOL);
	unsigned long GetBackColor();
	void SetBackColor(unsigned long);
	unsigned long GetForeColor();
	void SetForeColor(unsigned long);

// Operations
public:
	BOOL Connect(LPDISPATCH objRecordset);
	BOOL PrintGrid(LPCTSTR strDocTitle);
	BOOL Update();
	BOOL Disconnect();
	BOOL MoveTo(long nPosition);
	BOOL SeekID(long ID);
	BOOL MovePrev();
	BOOL MoveNext();
	BOOL MoveFirst();
	BOOL MoveLast();
	CString GetItemValue(long nRow, long nCol);
	long GetCurRow();
	long GetSelectedRowMin();
	long GetSelectedRowMax();
	long GetSelectedColMin();
	long GetSelectedColMax();
	BOOL IsRowSelected(long nRow);
	BOOL IsColSelected(long nCol);
	BOOL IsCellSelected(long nRow, long nCol);
	void AboutBox();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SUPERGRIDVIEW_H__64778553_3493_4C58_B998_5ACFCA9E9F5D__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -