superlegend.cpp
来自「用VC+SuperMap开发的校园GIS系统」· C++ 代码 · 共 187 行
CPP
187 行
// 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 "superlegend.h"
// Dispatch interfaces referenced by this interface
#include "font.h"
/////////////////////////////////////////////////////////////////////////////
// CSuperLegend
IMPLEMENT_DYNCREATE(CSuperLegend, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CSuperLegend properties
long CSuperLegend::GetReadyState()
{
long result;
GetProperty(DISPID_READYSTATE, VT_I4, (void*)&result);
return result;
}
COleFont CSuperLegend::GetFont()
{
LPDISPATCH pDispatch;
GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
return COleFont(pDispatch);
}
void CSuperLegend::SetFont(LPDISPATCH propVal)
{
SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
}
OLE_COLOR CSuperLegend::GetBackColor()
{
OLE_COLOR result;
GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
return result;
}
void CSuperLegend::SetBackColor(OLE_COLOR propVal)
{
SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
}
OLE_COLOR CSuperLegend::GetForeColor()
{
OLE_COLOR result;
GetProperty(DISPID_FORECOLOR, VT_I4, (void*)&result);
return result;
}
void CSuperLegend::SetForeColor(OLE_COLOR propVal)
{
SetProperty(DISPID_FORECOLOR, VT_I4, propVal);
}
BOOL CSuperLegend::GetItemDragAndDrop()
{
BOOL result;
GetProperty(0x1, VT_BOOL, (void*)&result);
return result;
}
void CSuperLegend::SetItemDragAndDrop(BOOL propVal)
{
SetProperty(0x1, VT_BOOL, propVal);
}
BOOL CSuperLegend::GetEditLabels()
{
BOOL result;
GetProperty(0x2, VT_BOOL, (void*)&result);
return result;
}
void CSuperLegend::SetEditLabels(BOOL propVal)
{
SetProperty(0x2, VT_BOOL, propVal);
}
BOOL CSuperLegend::GetHasButtons()
{
BOOL result;
GetProperty(0x3, VT_BOOL, (void*)&result);
return result;
}
void CSuperLegend::SetHasButtons(BOOL propVal)
{
SetProperty(0x3, VT_BOOL, propVal);
}
BOOL CSuperLegend::GetHasLines()
{
BOOL result;
GetProperty(0x4, VT_BOOL, (void*)&result);
return result;
}
void CSuperLegend::SetHasLines(BOOL propVal)
{
SetProperty(0x4, VT_BOOL, propVal);
}
BOOL CSuperLegend::GetSingleExpand()
{
BOOL result;
GetProperty(0x5, VT_BOOL, (void*)&result);
return result;
}
void CSuperLegend::SetSingleExpand(BOOL propVal)
{
SetProperty(0x5, VT_BOOL, propVal);
}
BOOL CSuperLegend::GetPopupMenu()
{
BOOL result;
GetProperty(0x6, VT_BOOL, (void*)&result);
return result;
}
void CSuperLegend::SetPopupMenu(BOOL propVal)
{
SetProperty(0x6, VT_BOOL, propVal);
}
short CSuperLegend::GetAppearance()
{
short result;
GetProperty(DISPID_APPEARANCE, VT_I2, (void*)&result);
return result;
}
void CSuperLegend::SetAppearance(short propVal)
{
SetProperty(DISPID_APPEARANCE, VT_I2, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CSuperLegend operations
BOOL CSuperLegend::Clear()
{
BOOL result;
InvokeHelper(0x7, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
void CSuperLegend::Refresh()
{
InvokeHelper(DISPID_REFRESH, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
BOOL CSuperLegend::Connect(LPDISPATCH objSuperMapCtrl)
{
BOOL result;
static BYTE parms[] =
VTS_DISPATCH;
InvokeHelper(0x8, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
objSuperMapCtrl);
return result;
}
void CSuperLegend::Disconnect()
{
InvokeHelper(0x9, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CSuperLegend::Expand()
{
InvokeHelper(0xa, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CSuperLegend::AboutBox()
{
InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?