📄 column1.cpp
字号:
// 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 "column1.h"
// Dispatch interfaces referenced by this interface
#include "StyleDisp.h"
#include "font.h"
#include "valueitems.h"
/////////////////////////////////////////////////////////////////////////////
// CColumn1 properties
long CColumn1::GetAlignment()
{
long result;
GetProperty(0x1, VT_I4, (void*)&result);
return result;
}
void CColumn1::SetAlignment(long propVal)
{
SetProperty(0x1, VT_I4, propVal);
}
BOOL CColumn1::GetAllowSizing()
{
BOOL result;
GetProperty(0x2, VT_BOOL, (void*)&result);
return result;
}
void CColumn1::SetAllowSizing(BOOL propVal)
{
SetProperty(0x2, VT_BOOL, propVal);
}
unsigned long CColumn1::GetBackColor()
{
unsigned long result;
GetProperty(0x3, VT_I4, (void*)&result);
return result;
}
void CColumn1::SetBackColor(unsigned long propVal)
{
SetProperty(0x3, VT_I4, propVal);
}
long CColumn1::GetDividerStyle()
{
long result;
GetProperty(0x4, VT_I4, (void*)&result);
return result;
}
void CColumn1::SetDividerStyle(long propVal)
{
SetProperty(0x4, VT_I4, propVal);
}
CString CColumn1::GetCaption()
{
CString result;
GetProperty(0x5, VT_BSTR, (void*)&result);
return result;
}
void CColumn1::SetCaption(LPCTSTR propVal)
{
SetProperty(0x5, VT_BSTR, propVal);
}
BOOL CColumn1::GetDataChanged()
{
BOOL result;
GetProperty(0x23, VT_BOOL, (void*)&result);
return result;
}
CString CColumn1::GetDataField()
{
CString result;
GetProperty(0x8, VT_BSTR, (void*)&result);
return result;
}
void CColumn1::SetDataField(LPCTSTR propVal)
{
SetProperty(0x8, VT_BSTR, propVal);
}
long CColumn1::GetDataWidth()
{
long result;
GetProperty(0x24, VT_I4, (void*)&result);
return result;
}
void CColumn1::SetDataWidth(long propVal)
{
SetProperty(0x24, VT_I4, propVal);
}
VARIANT CColumn1::GetDefaultValue()
{
VARIANT result;
GetProperty(0x9, VT_VARIANT, (void*)&result);
return result;
}
void CColumn1::SetDefaultValue(const VARIANT& propVal)
{
SetProperty(0x9, VT_VARIANT, &propVal);
}
unsigned long CColumn1::GetEditBackColor()
{
unsigned long result;
GetProperty(0x21, VT_I4, (void*)&result);
return result;
}
void CColumn1::SetEditBackColor(unsigned long propVal)
{
SetProperty(0x21, VT_I4, propVal);
}
unsigned long CColumn1::GetEditForeColor()
{
unsigned long result;
GetProperty(0x22, VT_I4, (void*)&result);
return result;
}
void CColumn1::SetEditForeColor(unsigned long propVal)
{
SetProperty(0x22, VT_I4, propVal);
}
unsigned long CColumn1::GetForeColor()
{
unsigned long result;
GetProperty(0xa, VT_I4, (void*)&result);
return result;
}
void CColumn1::SetForeColor(unsigned long propVal)
{
SetProperty(0xa, VT_I4, propVal);
}
long CColumn1::GetHeadAlignment()
{
long result;
GetProperty(0x2a, VT_I4, (void*)&result);
return result;
}
void CColumn1::SetHeadAlignment(long propVal)
{
SetProperty(0x2a, VT_I4, propVal);
}
unsigned long CColumn1::GetHeadBackColor()
{
unsigned long result;
GetProperty(0xb, VT_I4, (void*)&result);
return result;
}
void CColumn1::SetHeadBackColor(unsigned long propVal)
{
SetProperty(0xb, VT_I4, propVal);
}
unsigned long CColumn1::GetHeadForeColor()
{
unsigned long result;
GetProperty(0xc, VT_I4, (void*)&result);
return result;
}
void CColumn1::SetHeadForeColor(unsigned long propVal)
{
SetProperty(0xc, VT_I4, propVal);
}
short CColumn1::GetColIndex()
{
short result;
GetProperty(0xe, VT_I2, (void*)&result);
return result;
}
float CColumn1::GetLeft()
{
float result;
GetProperty(0xf, VT_R4, (void*)&result);
return result;
}
BOOL CColumn1::GetLocked()
{
BOOL result;
GetProperty(0x10, VT_BOOL, (void*)&result);
return result;
}
void CColumn1::SetLocked(BOOL propVal)
{
SetProperty(0x10, VT_BOOL, propVal);
}
CString CColumn1::GetNumberFormat()
{
CString result;
GetProperty(0x11, VT_BSTR, (void*)&result);
return result;
}
void CColumn1::SetNumberFormat(LPCTSTR propVal)
{
SetProperty(0x11, VT_BSTR, propVal);
}
CString CColumn1::GetText()
{
CString result;
GetProperty(0x0, VT_BSTR, (void*)&result);
return result;
}
void CColumn1::SetText(LPCTSTR propVal)
{
SetProperty(0x0, VT_BSTR, propVal);
}
float CColumn1::GetTop()
{
float result;
GetProperty(0x14, VT_R4, (void*)&result);
return result;
}
VARIANT CColumn1::GetValue()
{
VARIANT result;
GetProperty(0x15, VT_VARIANT, (void*)&result);
return result;
}
void CColumn1::SetValue(const VARIANT& propVal)
{
SetProperty(0x15, VT_VARIANT, &propVal);
}
BOOL CColumn1::GetVisible()
{
BOOL result;
GetProperty(0x16, VT_BOOL, (void*)&result);
return result;
}
void CColumn1::SetVisible(BOOL propVal)
{
SetProperty(0x16, VT_BOOL, propVal);
}
float CColumn1::GetWidth()
{
float result;
GetProperty(0x17, VT_R4, (void*)&result);
return result;
}
void CColumn1::SetWidth(float propVal)
{
SetProperty(0x17, VT_R4, propVal);
}
BOOL CColumn1::GetWrapText()
{
BOOL result;
GetProperty(0x25, VT_BOOL, (void*)&result);
return result;
}
void CColumn1::SetWrapText(BOOL propVal)
{
SetProperty(0x25, VT_BOOL, propVal);
}
BOOL CColumn1::GetButton()
{
BOOL result;
GetProperty(0x28, VT_BOOL, (void*)&result);
return result;
}
void CColumn1::SetButton(BOOL propVal)
{
SetProperty(0x28, VT_BOOL, propVal);
}
BOOL CColumn1::GetFetchStyle()
{
BOOL result;
GetProperty(0x29, VT_BOOL, (void*)&result);
return result;
}
void CColumn1::SetFetchStyle(BOOL propVal)
{
SetProperty(0x29, VT_BOOL, propVal);
}
CStyleDisp CColumn1::GetStyle()
{
LPDISPATCH pDispatch;
GetProperty(0x1d, VT_DISPATCH, (void*)&pDispatch);
return CStyleDisp(pDispatch);
}
void CColumn1::SetStyle(LPDISPATCH propVal)
{
SetProperty(0x1d, VT_DISPATCH, propVal);
}
CStyleDisp CColumn1::GetHeadingStyle()
{
LPDISPATCH pDispatch;
GetProperty(0x1e, VT_DISPATCH, (void*)&pDispatch);
return CStyleDisp(pDispatch);
}
void CColumn1::SetHeadingStyle(LPDISPATCH propVal)
{
SetProperty(0x1e, VT_DISPATCH, propVal);
}
CStyleDisp CColumn1::GetEditorStyle()
{
LPDISPATCH pDispatch;
GetProperty(0x1f, VT_DISPATCH, (void*)&pDispatch);
return CStyleDisp(pDispatch);
}
void CColumn1::SetEditorStyle(LPDISPATCH propVal)
{
SetProperty(0x1f, VT_DISPATCH, propVal);
}
COleFont CColumn1::GetFont()
{
LPDISPATCH pDispatch;
GetProperty(0x1c, VT_DISPATCH, (void*)&pDispatch);
return COleFont(pDispatch);
}
void CColumn1::SetFont(LPDISPATCH propVal)
{
SetProperty(0x1c, VT_DISPATCH, propVal);
}
COleFont CColumn1::GetHeadFont()
{
LPDISPATCH pDispatch;
GetProperty(0x20, VT_DISPATCH, (void*)&pDispatch);
return COleFont(pDispatch);
}
void CColumn1::SetHeadFont(LPDISPATCH propVal)
{
SetProperty(0x20, VT_DISPATCH, propVal);
}
short CColumn1::GetOrder()
{
short result;
GetProperty(0x2b, VT_I2, (void*)&result);
return result;
}
void CColumn1::SetOrder(short propVal)
{
SetProperty(0x2b, VT_I2, propVal);
}
CString CColumn1::GetEditMask()
{
CString result;
GetProperty(0x2c, VT_BSTR, (void*)&result);
return result;
}
void CColumn1::SetEditMask(LPCTSTR propVal)
{
SetProperty(0x2c, VT_BSTR, propVal);
}
BOOL CColumn1::GetEditMaskUpdate()
{
BOOL result;
GetProperty(0x2d, VT_BOOL, (void*)&result);
return result;
}
void CColumn1::SetEditMaskUpdate(BOOL propVal)
{
SetProperty(0x2d, VT_BOOL, propVal);
}
VARIANT CColumn1::GetDropDown()
{
VARIANT result;
GetProperty(0x2f, VT_VARIANT, (void*)&result);
return result;
}
void CColumn1::SetDropDown(const VARIANT& propVal)
{
SetProperty(0x2f, VT_VARIANT, &propVal);
}
float CColumn1::GetCellTop()
{
float result;
GetProperty(0x30, VT_R4, (void*)&result);
return result;
}
VARIANT CColumn1::GetButtonPicture()
{
VARIANT result;
GetProperty(0x31, VT_VARIANT, (void*)&result);
return result;
}
void CColumn1::SetButtonPicture(const VARIANT& propVal)
{
SetProperty(0x31, VT_VARIANT, &propVal);
}
BOOL CColumn1::GetAllowFocus()
{
BOOL result;
GetProperty(0x32, VT_BOOL, (void*)&result);
return result;
}
void CColumn1::SetAllowFocus(BOOL propVal)
{
SetProperty(0x32, VT_BOOL, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CColumn1 operations
CValueItems CColumn1::GetValueItems()
{
LPDISPATCH pDispatch;
InvokeHelper(0x18, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
return CValueItems(pDispatch);
}
CString CColumn1::CellText(const VARIANT& Bookmark)
{
CString result;
static BYTE parms[] =
VTS_VARIANT;
InvokeHelper(0x6, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
&Bookmark);
return result;
}
VARIANT CColumn1::CellValue(const VARIANT& Bookmark)
{
VARIANT result;
static BYTE parms[] =
VTS_VARIANT;
InvokeHelper(0x7, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
&Bookmark);
return result;
}
void CColumn1::AddCellStyle(short Condition, const VARIANT& Style)
{
static BYTE parms[] =
VTS_I2 VTS_VARIANT;
InvokeHelper(0x1a, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
Condition, &Style);
}
void CColumn1::AddRegexCellStyle(short Condition, const VARIANT& Style, LPCTSTR Regex)
{
static BYTE parms[] =
VTS_I2 VTS_VARIANT VTS_BSTR;
InvokeHelper(0x1b, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
Condition, &Style, Regex);
}
void CColumn1::ClearCellStyle(short Condition)
{
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x26, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
Condition);
}
void CColumn1::ClearRegexCellStyle(short Condition, const VARIANT& Regex)
{
static BYTE parms[] =
VTS_I2 VTS_VARIANT;
InvokeHelper(0x27, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
Condition, &Regex);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -