【VC开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了VC开源代码-XPROPERTIESWND.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 "xpropertieswnd.h"
/////////////////////////////////////////////////////////////////////////////
// CXPropertiesWnd
IMPLEMENT_DYNCREATE(CXPropertiesWnd, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CXPropertiesWnd properties
OLE_COLOR CXPropertiesWnd::GetBackColor()
{
OLE_COLOR result;
GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
return result;
}
void CXPropertiesWnd::SetBackColor(OLE_COLOR propVal)
{
SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
}
CString CXPropertiesWnd::GetPagesAndItems()
{
CString result;
GetProperty(0x1, VT_BSTR, (void*)&result);
return result;
}
void CXPropertiesWnd::SetPagesAndItems(LPCTSTR propVal)
{
SetProperty(0x1, VT_BSTR, propVal);
}
BOOL CXPropertiesWnd::GetAutoResizingColumns()
{
BOOL result;
GetProperty(0x2, VT_BOOL, (void*)&result);
return result;
}
void CXPropertiesWnd::SetAutoResizingColumns(BOOL propVal)
{
SetProperty(0x2, VT_BOOL, propVal);
}
BOOL CXPropertiesWnd::GetSignEnableDisable()
{
BOOL result;
GetProperty(0x3, VT_BOOL, (void*)&result);
return result;
}
void CXPropertiesWnd::SetSignEnableDisable(BOOL propVal)
{
SetProperty(0x3, VT_BOOL, propVal);
}
BOOL CXPropertiesWnd::GetToolTips()
{
BOOL result;
GetProperty(0x4, VT_BOOL, (void*)&result);
return result;
}
void CXPropertiesWnd::SetToolTips(BOOL propVal)
{
SetProperty(0x4, VT_BOOL, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CXPropertiesWnd operations
long CXPropertiesWnd::GetPagesCount()
{
long result;
InvokeHelper(0x5, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
return result;
}
short CXPropertiesWnd::AddPage(LPCTSTR lpszPageName)
{
short result;
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x6, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
lpszPageName);
return result;
}
BOOL CXPropertiesWnd::DeletePage(short nIndexPage)
{
BOOL result;
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x7, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
nIndexPage);
return result;
}
CString CXPropertiesWnd::GetPageName(short nIndexPage)
{
CString result;
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x8, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
nIndexPage);
return result;
}
short CXPropertiesWnd::GetPage(LPCTSTR lpszPageName)
{
short result;
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x9, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
lpszPageName);
return result;
}
void CXPropertiesWnd::ActivatePage(short nIndexPage)
{
static BYTE parms[] =
VTS_I2;
InvokeHelper(0xa, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
nIndexPage);
}
short CXPropertiesWnd::InsertProperty(short nIndexPage, short nIndexProperty, LPCTSTR lpszPropertyName, LPCTSTR lpszPropertyAs, short lpszProperyType)
{
short result;
static BYTE parms[] =
VTS_I2 VTS_I2 VTS_BSTR VTS_BSTR VTS_I2;
InvokeHelper(0xb, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
nIndexPage, nIndexProperty, lpszPropertyName, lpszPropertyAs, lpszProperyType);
return result;
}
BOOL CXPropertiesWnd::DeleteProperty(short nIndexPage, short nIndexProperty)
{
BOOL result;
static BYTE parms[] =
VTS_I2 VTS_I2;
InvokeHelper(0xc, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
nIndexPage, nIndexProperty);
return result;
}
CString CXPropertiesWnd::GetPropertyName(short nIndexPage, short nIndexProperty)
{
CString result;
static BYTE parms[] =
VTS_I2 VTS_I2;
InvokeHelper(0xd, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
nIndexPage, nIndexProperty);
return result;
}
short CXPropertiesWnd::GetPropertyType(short nIndexPage, short nIndexProperty)
{
short result;
static BYTE parms[] =
VTS_I2 VTS_I2;
InvokeHelper(0xe, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
nIndexPage, nIndexProperty);
return result;
}
void C