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

📄 f1bookview.cpp

📁 这是本人两年前兼职为某个公司做的石油钻进设计软件
💻 CPP
📖 第 1 页 / 共 5 页
字号:
{
	SetProperty(0x519, VT_BOOL, propVal);
}

unsigned long CF1BookView::GetFontColor()
{
	unsigned long result;
	GetProperty(0x51a, VT_I4, (void*)&result);
	return result;
}

void CF1BookView::SetFontColor(unsigned long propVal)
{
	SetProperty(0x51a, VT_I4, propVal);
}

long CF1BookView::GetFontCharSet()
{
	long result;
	GetProperty(0x599, VT_I4, (void*)&result);
	return result;
}

void CF1BookView::SetFontCharSet(long propVal)
{
	SetProperty(0x599, VT_I4, propVal);
}

long CF1BookView::GetHAlign()
{
	long result;
	GetProperty(0x51b, VT_I4, (void*)&result);
	return result;
}

void CF1BookView::SetHAlign(long propVal)
{
	SetProperty(0x51b, VT_I4, propVal);
}

BOOL CF1BookView::GetWordWrap()
{
	BOOL result;
	GetProperty(0x51c, VT_BOOL, (void*)&result);
	return result;
}

void CF1BookView::SetWordWrap(BOOL propVal)
{
	SetProperty(0x51c, VT_BOOL, propVal);
}

long CF1BookView::GetVAlign()
{
	long result;
	GetProperty(0x51d, VT_I4, (void*)&result);
	return result;
}

void CF1BookView::SetVAlign(long propVal)
{
	SetProperty(0x51d, VT_I4, propVal);
}

double CF1BookView::GetPrintHeaderMargin()
{
	double result;
	GetProperty(0x51f, VT_R8, (void*)&result);
	return result;
}

void CF1BookView::SetPrintHeaderMargin(double propVal)
{
	SetProperty(0x51f, VT_R8, propVal);
}

double CF1BookView::GetPrintFooterMargin()
{
	double result;
	GetProperty(0x520, VT_R8, (void*)&result);
	return result;
}

void CF1BookView::SetPrintFooterMargin(double propVal)
{
	SetProperty(0x520, VT_R8, propVal);
}

CString CF1BookView::GetFormulaLocal()
{
	CString result;
	GetProperty(0x52e, VT_BSTR, (void*)&result);
	return result;
}

void CF1BookView::SetFormulaLocal(LPCTSTR propVal)
{
	SetProperty(0x52e, VT_BSTR, propVal);
}

CString CF1BookView::GetNumberFormatLocal()
{
	CString result;
	GetProperty(0x532, VT_BSTR, (void*)&result);
	return result;
}

void CF1BookView::SetNumberFormatLocal(LPCTSTR propVal)
{
	SetProperty(0x532, VT_BSTR, propVal);
}

CString CF1BookView::GetSelectionLocal()
{
	CString result;
	GetProperty(0x533, VT_BSTR, (void*)&result);
	return result;
}

void CF1BookView::SetSelectionLocal(LPCTSTR propVal)
{
	SetProperty(0x533, VT_BSTR, propVal);
}

CString CF1BookView::GetDataTransferRange()
{
	CString result;
	GetProperty(0x536, VT_BSTR, (void*)&result);
	return result;
}

void CF1BookView::SetDataTransferRange(LPCTSTR propVal)
{
	SetProperty(0x536, VT_BSTR, propVal);
}

BOOL CF1BookView::GetCanEditPaste()
{
	BOOL result;
	GetProperty(0x540, VT_BOOL, (void*)&result);
	return result;
}

void CF1BookView::SetCanEditPaste(BOOL propVal)
{
	SetProperty(0x540, VT_BOOL, propVal);
}

short CF1BookView::GetObjPatternStyle()
{
	short result;
	GetProperty(0x54a, VT_I2, (void*)&result);
	return result;
}

void CF1BookView::SetObjPatternStyle(short propVal)
{
	SetProperty(0x54a, VT_I2, propVal);
}

unsigned long CF1BookView::GetObjPatternFG()
{
	unsigned long result;
	GetProperty(0x54b, VT_I4, (void*)&result);
	return result;
}

void CF1BookView::SetObjPatternFG(unsigned long propVal)
{
	SetProperty(0x54b, VT_I4, propVal);
}

unsigned long CF1BookView::GetObjPatternBG()
{
	unsigned long result;
	GetProperty(0x54c, VT_I4, (void*)&result);
	return result;
}

void CF1BookView::SetObjPatternBG(unsigned long propVal)
{
	SetProperty(0x54c, VT_I4, propVal);
}

CString CF1BookView::GetDefaultFontName()
{
	CString result;
	GetProperty(0x551, VT_BSTR, (void*)&result);
	return result;
}

void CF1BookView::SetDefaultFontName(LPCTSTR propVal)
{
	SetProperty(0x551, VT_BSTR, propVal);
}

short CF1BookView::GetDefaultFontSize()
{
	short result;
	GetProperty(0x552, VT_I2, (void*)&result);
	return result;
}

void CF1BookView::SetDefaultFontSize(short propVal)
{
	SetProperty(0x552, VT_I2, propVal);
}

BOOL CF1BookView::GetSelHdrRow()
{
	BOOL result;
	GetProperty(0x553, VT_BOOL, (void*)&result);
	return result;
}

void CF1BookView::SetSelHdrRow(BOOL propVal)
{
	SetProperty(0x553, VT_BOOL, propVal);
}

BOOL CF1BookView::GetSelHdrCol()
{
	BOOL result;
	GetProperty(0x554, VT_BOOL, (void*)&result);
	return result;
}

void CF1BookView::SetSelHdrCol(BOOL propVal)
{
	SetProperty(0x554, VT_BOOL, propVal);
}

BOOL CF1BookView::GetSelHdrTopLeft()
{
	BOOL result;
	GetProperty(0x555, VT_BOOL, (void*)&result);
	return result;
}

void CF1BookView::SetSelHdrTopLeft(BOOL propVal)
{
	SetProperty(0x555, VT_BOOL, propVal);
}

BOOL CF1BookView::GetIterationEnabled()
{
	BOOL result;
	GetProperty(0x556, VT_BOOL, (void*)&result);
	return result;
}

void CF1BookView::SetIterationEnabled(BOOL propVal)
{
	SetProperty(0x556, VT_BOOL, propVal);
}

short CF1BookView::GetIterationMax()
{
	short result;
	GetProperty(0x557, VT_I2, (void*)&result);
	return result;
}

void CF1BookView::SetIterationMax(short propVal)
{
	SetProperty(0x557, VT_I2, propVal);
}

double CF1BookView::GetIterationMaxChange()
{
	double result;
	GetProperty(0x558, VT_R8, (void*)&result);
	return result;
}

void CF1BookView::SetIterationMaxChange(double propVal)
{
	SetProperty(0x558, VT_R8, propVal);
}

short CF1BookView::GetPrintScale()
{
	short result;
	GetProperty(0x56d, VT_I2, (void*)&result);
	return result;
}

void CF1BookView::SetPrintScale(short propVal)
{
	SetProperty(0x56d, VT_I2, propVal);
}

BOOL CF1BookView::GetPrintScaleFitToPage()
{
	BOOL result;
	GetProperty(0x56e, VT_BOOL, (void*)&result);
	return result;
}

void CF1BookView::SetPrintScaleFitToPage(BOOL propVal)
{
	SetProperty(0x56e, VT_BOOL, propVal);
}

long CF1BookView::GetPrintScaleFitVPages()
{
	long result;
	GetProperty(0x570, VT_I4, (void*)&result);
	return result;
}

void CF1BookView::SetPrintScaleFitVPages(long propVal)
{
	SetProperty(0x570, VT_I4, propVal);
}

long CF1BookView::GetPrintScaleFitHPages()
{
	long result;
	GetProperty(0x56f, VT_I4, (void*)&result);
	return result;
}

void CF1BookView::SetPrintScaleFitHPages(long propVal)
{
	SetProperty(0x56f, VT_I4, propVal);
}

short CF1BookView::GetLineStyle()
{
	short result;
	GetProperty(0x573, VT_I2, (void*)&result);
	return result;
}

void CF1BookView::SetLineStyle(short propVal)
{
	SetProperty(0x573, VT_I2, propVal);
}

unsigned long CF1BookView::GetLineColor()
{
	unsigned long result;
	GetProperty(0x574, VT_I4, (void*)&result);
	return result;
}

void CF1BookView::SetLineColor(unsigned long propVal)
{
	SetProperty(0x574, VT_I4, propVal);
}

short CF1BookView::GetLineWeight()
{
	short result;
	GetProperty(0x575, VT_I2, (void*)&result);
	return result;
}

void CF1BookView::SetLineWeight(short propVal)
{
	SetProperty(0x575, VT_I2, propVal);
}

CString CF1BookView::GetODBCSQLState()
{
	CString result;
	GetProperty(0x57b, VT_BSTR, (void*)&result);
	return result;
}

void CF1BookView::SetODBCSQLState(LPCTSTR propVal)
{
	SetProperty(0x57b, VT_BSTR, propVal);
}

long CF1BookView::GetODBCNativeError()
{
	long result;
	GetProperty(0x57c, VT_I4, (void*)&result);
	return result;
}

void CF1BookView::SetODBCNativeError(long propVal)
{
	SetProperty(0x57c, VT_I4, propVal);
}

CString CF1BookView::GetODBCErrorMsg()
{
	CString result;
	GetProperty(0x57d, VT_BSTR, (void*)&result);
	return result;
}

void CF1BookView::SetODBCErrorMsg(LPCTSTR propVal)
{
	SetProperty(0x57d, VT_BSTR, propVal);
}

BOOL CF1BookView::GetDataTransferHeadings()
{
	BOOL result;
	GetProperty(0x585, VT_BOOL, (void*)&result);
	return result;
}

void CF1BookView::SetDataTransferHeadings(BOOL propVal)
{
	SetProperty(0x585, VT_BOOL, propVal);
}

BOOL CF1BookView::GetCanEditPasteSpecial()
{
	BOOL result;
	GetProperty(0x58d, VT_BOOL, (void*)&result);
	return result;
}

void CF1BookView::SetCanEditPasteSpecial(BOOL propVal)
{
	SetProperty(0x58d, VT_BOOL, propVal);
}

BOOL CF1BookView::GetPrecisionAsDisplayed()
{
	BOOL result;
	GetProperty(0x593, VT_BOOL, (void*)&result);
	return result;
}

void CF1BookView::SetPrecisionAsDisplayed(BOOL propVal)
{
	SetProperty(0x593, VT_BOOL, propVal);
}

long CF1BookView::GetDefaultFontCharSet()
{
	long result;
	GetProperty(0x59c, VT_I4, (void*)&result);
	return result;
}

void CF1BookView::SetDefaultFontCharSet(long propVal)
{
	SetProperty(0x59c, VT_I4, propVal);
}

BOOL CF1BookView::GetWantAllWindowInfoChanges()
{
	BOOL result;
	GetProperty(0x5a0, VT_BOOL, (void*)&result);
	return result;
}

void CF1BookView::SetWantAllWindowInfoChanges(BOOL propVal)
{
	SetProperty(0x5a0, VT_BOOL, propVal);
}

BOOL CF1BookView::GetDataLossIsError()
{
	BOOL result;
	GetProperty(0x5a4, VT_BOOL, (void*)&result);
	return result;
}

void CF1BookView::SetDataLossIsError(BOOL propVal)
{
	SetProperty(0x5a4, VT_BOOL, propVal);
}

BOOL CF1BookView::GetMinimalRecalc()
{
	BOOL result;
	GetProperty(0x5a5, VT_BOOL, (void*)&result);
	return result;
}

void CF1BookView::SetMinimalRecalc(BOOL propVal)
{
	SetProperty(0x5a5, VT_BOOL, propVal);
}

BOOL CF1BookView::GetAllowCellTextDlg()
{
	BOOL result;
	GetProperty(0x5a6, VT_BOOL, (void*)&result);
	return result;
}

void CF1BookView::SetAllowCellTextDlg(BOOL propVal)
{
	SetProperty(0x5a6, VT_BOOL, propVal);
}

BOOL CF1BookView::GetShowLockedCellsError()
{
	BOOL result;
	GetProperty(0x5a7, VT_BOOL, (void*)&result);
	return result;
}

void CF1BookView::SetShowLockedCellsError(BOOL propVal)
{
	SetProperty(0x5a7, VT_BOOL, propVal);
}

/////////////////////////////////////////////////////////////////////////////
// CF1BookView operations

double CF1BookView::GetNumberRC(long nRow, long nCol)
{
	double result;
	static BYTE parms[] =
		VTS_I4 VTS_I4;
	InvokeHelper(0x117, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, parms,
		nRow, nCol);
	return result;
}

void CF1BookView::SetNumberRC(long nRow, long nCol, double newValue)
{
	static BYTE parms[] =
		VTS_I4 VTS_I4 VTS_R8;
	InvokeHelper(0x117, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
		 nRow, nCol, newValue);
}

CString CF1BookView::GetColText(long nCol)
{
	CString result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x110, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
		nCol);
	return result;
}

void CF1BookView::SetColText(long nCol, LPCTSTR lpszNewValue)
{
	static BYTE parms[] =
		VTS_I4 VTS_BSTR;
	InvokeHelper(0x110, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
		 nCol, lpszNewValue);
}

CString CF1BookView::GetDefinedName(LPCTSTR Name)
{
	CString result;
	static BYTE parms[] =
		VTS_BSTR;
	InvokeHelper(0x111, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
		Name);
	return result;
}

void CF1BookView::SetDefinedName(LPCTSTR Name, LPCTSTR lpszNewValue)
{
	static BYTE parms[] =
		VTS_BSTR VTS_BSTR;
	InvokeHelper(0x111, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
		 Name, lpszNewValue);
}

CString CF1BookView::GetEntryRC(long nRow, long nCol)
{
	CString result;
	static BYTE parms[] =
		VTS_I4 VTS_I4;
	InvokeHelper(0x112, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
		nRow, nCol);
	return result;
}

void CF1BookView::SetEntryRC(long nRow, long nCol, LPCTSTR lpszNewValue)
{
	static BYTE parms[] =
		VTS_I4 VTS_I4 VTS_BSTR;
	InvokeHelper(0x112, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
		 nRow, nCol, lpszNewValue);
}

CString CF1BookView::GetFormattedTextRC(long nRow, long nCol)
{
	CString result;
	static BYTE parms[] =
		VTS_I4 VTS_I4;
	InvokeHelper(0x113, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
		nRow, nCol);
	return result;
}

CString CF1BookView::GetFormulaRC(long nRow, long nCol)
{
	CString result;
	static BYTE parms[] =

⌨️ 快捷键说明

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