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

📄 rsgrid1.cpp

📁 利用OLEDB以数据库的方式打开Excell文件
💻 CPP
📖 第 1 页 / 共 4 页
字号:
// 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.


#include "stdafx.h"
#include "rsgrid1.h"

// Dispatch interfaces referenced by this interface
#include "Font1.h"

/////////////////////////////////////////////////////////////////////////////
// CRsGrid

IMPLEMENT_DYNCREATE(CRsGrid, CWnd)

/////////////////////////////////////////////////////////////////////////////
// CRsGrid properties

unsigned long CRsGrid::GetTextColor()
{
	unsigned long result;
	GetProperty(0xa, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetTextColor(unsigned long propVal)
{
	SetProperty(0xa, VT_I4, propVal);
}

BOOL CRsGrid::GetRowSelectFlag()
{
	BOOL result;
	GetProperty(0xb, VT_BOOL, (void*)&result);
	return result;
}

void CRsGrid::SetRowSelectFlag(BOOL propVal)
{
	SetProperty(0xb, VT_BOOL, propVal);
}

BOOL CRsGrid::GetTopFixedButtonStyle()
{
	BOOL result;
	GetProperty(0xc, VT_BOOL, (void*)&result);
	return result;
}

void CRsGrid::SetTopFixedButtonStyle(BOOL propVal)
{
	SetProperty(0xc, VT_BOOL, propVal);
}

BOOL CRsGrid::GetLeftFixedButtonStyle()
{
	BOOL result;
	GetProperty(0xd, VT_BOOL, (void*)&result);
	return result;
}

void CRsGrid::SetLeftFixedButtonStyle(BOOL propVal)
{
	SetProperty(0xd, VT_BOOL, propVal);
}

unsigned long CRsGrid::GetSelTextColor()
{
	unsigned long result;
	GetProperty(0xe, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetSelTextColor(unsigned long propVal)
{
	SetProperty(0xe, VT_I4, propVal);
}

long CRsGrid::GetGridLineType()
{
	long result;
	GetProperty(0xf, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetGridLineType(long propVal)
{
	SetProperty(0xf, VT_I4, propVal);
}

BOOL CRsGrid::GetReadOnly()
{
	BOOL result;
	GetProperty(0x10, VT_BOOL, (void*)&result);
	return result;
}

void CRsGrid::SetReadOnly(BOOL propVal)
{
	SetProperty(0x10, VT_BOOL, propVal);
}

short CRsGrid::GetRowDistance()
{
	short result;
	GetProperty(0x11, VT_I2, (void*)&result);
	return result;
}

void CRsGrid::SetRowDistance(short propVal)
{
	SetProperty(0x11, VT_I2, propVal);
}

long CRsGrid::GetFixedColCount()
{
	long result;
	GetProperty(0x12, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetFixedColCount(long propVal)
{
	SetProperty(0x12, VT_I4, propVal);
}

long CRsGrid::GetFixedRowCount()
{
	long result;
	GetProperty(0x13, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetFixedRowCount(long propVal)
{
	SetProperty(0x13, VT_I4, propVal);
}

long CRsGrid::GetCurrentMinCol()
{
	long result;
	GetProperty(0x14, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetCurrentMinCol(long propVal)
{
	SetProperty(0x14, VT_I4, propVal);
}

long CRsGrid::GetCurrentMinRow()
{
	long result;
	GetProperty(0x15, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetCurrentMinRow(long propVal)
{
	SetProperty(0x15, VT_I4, propVal);
}

CString CRsGrid::GetBkgrndMap()
{
	CString result;
	GetProperty(0x16, VT_BSTR, (void*)&result);
	return result;
}

void CRsGrid::SetBkgrndMap(LPCTSTR propVal)
{
	SetProperty(0x16, VT_BSTR, propVal);
}

unsigned long CRsGrid::GetGridLineColor()
{
	unsigned long result;
	GetProperty(0x17, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetGridLineColor(unsigned long propVal)
{
	SetProperty(0x17, VT_I4, propVal);
}

unsigned long CRsGrid::GetGridBackColor()
{
	unsigned long result;
	GetProperty(0x18, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetGridBackColor(unsigned long propVal)
{
	SetProperty(0x18, VT_I4, propVal);
}

BOOL CRsGrid::GetTile()
{
	BOOL result;
	GetProperty(0x19, VT_BOOL, (void*)&result);
	return result;
}

void CRsGrid::SetTile(BOOL propVal)
{
	SetProperty(0x19, VT_BOOL, propVal);
}

short CRsGrid::GetSelectedImageIndex()
{
	short result;
	GetProperty(0x1a, VT_I2, (void*)&result);
	return result;
}

void CRsGrid::SetSelectedImageIndex(short propVal)
{
	SetProperty(0x1a, VT_I2, propVal);
}

long CRsGrid::GetRowCount()
{
	long result;
	GetProperty(0x1b, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetRowCount(long propVal)
{
	SetProperty(0x1b, VT_I4, propVal);
}

long CRsGrid::GetColCount()
{
	long result;
	GetProperty(0x1c, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetColCount(long propVal)
{
	SetProperty(0x1c, VT_I4, propVal);
}

BOOL CRsGrid::GetMultiSelFlag()
{
	BOOL result;
	GetProperty(0x1d, VT_BOOL, (void*)&result);
	return result;
}

void CRsGrid::SetMultiSelFlag(BOOL propVal)
{
	SetProperty(0x1d, VT_BOOL, propVal);
}

BOOL CRsGrid::GetAlignToAllClient()
{
	BOOL result;
	GetProperty(0x1e, VT_BOOL, (void*)&result);
	return result;
}

void CRsGrid::SetAlignToAllClient(BOOL propVal)
{
	SetProperty(0x1e, VT_BOOL, propVal);
}

BOOL CRsGrid::GetColWidthFixed()
{
	BOOL result;
	GetProperty(0x1f, VT_BOOL, (void*)&result);
	return result;
}

void CRsGrid::SetColWidthFixed(BOOL propVal)
{
	SetProperty(0x1f, VT_BOOL, propVal);
}

unsigned long CRsGrid::GetLeftFixedBkColor()
{
	unsigned long result;
	GetProperty(0x20, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetLeftFixedBkColor(unsigned long propVal)
{
	SetProperty(0x20, VT_I4, propVal);
}

unsigned long CRsGrid::GetTopFixedBkColor()
{
	unsigned long result;
	GetProperty(0x21, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetTopFixedBkColor(unsigned long propVal)
{
	SetProperty(0x21, VT_I4, propVal);
}

unsigned long CRsGrid::GetLeftFixedTextColor()
{
	unsigned long result;
	GetProperty(0x22, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetLeftFixedTextColor(unsigned long propVal)
{
	SetProperty(0x22, VT_I4, propVal);
}

unsigned long CRsGrid::GetTopFixedTextColor()
{
	unsigned long result;
	GetProperty(0x23, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetTopFixedTextColor(unsigned long propVal)
{
	SetProperty(0x23, VT_I4, propVal);
}

long CRsGrid::GetImageList()
{
	long result;
	GetProperty(0x24, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetImageList(long propVal)
{
	SetProperty(0x24, VT_I4, propVal);
}

unsigned long CRsGrid::GetSelBkColor()
{
	unsigned long result;
	GetProperty(0x25, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetSelBkColor(unsigned long propVal)
{
	SetProperty(0x25, VT_I4, propVal);
}

BOOL CRsGrid::GetSavePicToRes()
{
	BOOL result;
	GetProperty(0x1, VT_BOOL, (void*)&result);
	return result;
}

void CRsGrid::SetSavePicToRes(BOOL propVal)
{
	SetProperty(0x1, VT_BOOL, propVal);
}

short CRsGrid::GetEnterMoveWay()
{
	short result;
	GetProperty(0x26, VT_I2, (void*)&result);
	return result;
}

void CRsGrid::SetEnterMoveWay(short propVal)
{
	SetProperty(0x26, VT_I2, propVal);
}

long CRsGrid::GetDisToLeftBorder()
{
	long result;
	GetProperty(0x27, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetDisToLeftBorder(long propVal)
{
	SetProperty(0x27, VT_I4, propVal);
}

long CRsGrid::GetDisToRightBorder()
{
	long result;
	GetProperty(0x28, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetDisToRightBorder(long propVal)
{
	SetProperty(0x28, VT_I4, propVal);
}

long CRsGrid::GetDisToTopBorder()
{
	long result;
	GetProperty(0x29, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetDisToTopBorder(long propVal)
{
	SetProperty(0x29, VT_I4, propVal);
}

long CRsGrid::GetDisToBottomBorder()
{
	long result;
	GetProperty(0x2a, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetDisToBottomBorder(long propVal)
{
	SetProperty(0x2a, VT_I4, propVal);
}

BOOL CRsGrid::GetSaveGridTitleToFile()
{
	BOOL result;
	GetProperty(0x2b, VT_BOOL, (void*)&result);
	return result;
}

void CRsGrid::SetSaveGridTitleToFile(BOOL propVal)
{
	SetProperty(0x2b, VT_BOOL, propVal);
}

BOOL CRsGrid::GetGridTitleEditable()
{
	BOOL result;
	GetProperty(0x2c, VT_BOOL, (void*)&result);
	return result;
}

void CRsGrid::SetGridTitleEditable(BOOL propVal)
{
	SetProperty(0x2c, VT_BOOL, propVal);
}

long CRsGrid::GetCurrentRow()
{
	long result;
	GetProperty(0x2d, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetCurrentRow(long propVal)
{
	SetProperty(0x2d, VT_I4, propVal);
}

long CRsGrid::GetCurrentColumn()
{
	long result;
	GetProperty(0x2e, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetCurrentColumn(long propVal)
{
	SetProperty(0x2e, VT_I4, propVal);
}

COleFont CRsGrid::GetFont()
{
	LPDISPATCH pDispatch;
	GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
	return COleFont(pDispatch);
}

void CRsGrid::SetFont(LPDISPATCH propVal)
{
	SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
}

BOOL CRsGrid::GetEnableScript()
{
	BOOL result;
	GetProperty(0x2f, VT_BOOL, (void*)&result);
	return result;
}

void CRsGrid::SetEnableScript(BOOL propVal)
{
	SetProperty(0x2f, VT_BOOL, propVal);
}

BOOL CRsGrid::GetBorder3D()
{
	BOOL result;
	GetProperty(0x30, VT_BOOL, (void*)&result);
	return result;
}

void CRsGrid::SetBorder3D(BOOL propVal)
{
	SetProperty(0x30, VT_BOOL, propVal);
}

BOOL CRsGrid::GetModified()
{
	BOOL result;
	GetProperty(0x31, VT_BOOL, (void*)&result);
	return result;
}

void CRsGrid::SetModified(BOOL propVal)
{
	SetProperty(0x31, VT_BOOL, propVal);
}

long CRsGrid::GetPMarginLeft()
{
	long result;
	GetProperty(0x32, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetPMarginLeft(long propVal)
{
	SetProperty(0x32, VT_I4, propVal);
}

long CRsGrid::GetPMarginTop()
{
	long result;
	GetProperty(0x33, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetPMarginTop(long propVal)
{
	SetProperty(0x33, VT_I4, propVal);
}

long CRsGrid::GetPMarginRight()
{
	long result;
	GetProperty(0x34, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetPMarginRight(long propVal)
{
	SetProperty(0x34, VT_I4, propVal);
}

long CRsGrid::GetPMarginBottom()
{
	long result;
	GetProperty(0x35, VT_I4, (void*)&result);
	return result;
}

void CRsGrid::SetPMarginBottom(long propVal)
{
	SetProperty(0x35, VT_I4, propVal);
}

BOOL CRsGrid::GetPrintFrameLeft()
{
	BOOL result;
	GetProperty(0x2, VT_BOOL, (void*)&result);
	return result;
}

void CRsGrid::SetPrintFrameLeft(BOOL propVal)
{
	SetProperty(0x2, VT_BOOL, propVal);

⌨️ 快捷键说明

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