toccontroldefault.cpp
资源名称:GISCode.rar [点击查看]
上传用户:juying163
上传日期:2014-09-24
资源大小:5867k
文件大小:5k
源码类别:
GIS编程
开发平台:
Visual C++
- // 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 "toccontroldefault.h"
- // Dispatch interfaces referenced by this interface
- #include "picture.h"
- /////////////////////////////////////////////////////////////////////////////
- // CTOCControlDefault
- IMPLEMENT_DYNCREATE(CTOCControlDefault, CWnd)
- /////////////////////////////////////////////////////////////////////////////
- // CTOCControlDefault properties
- /////////////////////////////////////////////////////////////////////////////
- // CTOCControlDefault operations
- void CTOCControlDefault::SetEnabled(BOOL bNewValue)
- {
- static BYTE parms[] =
- VTS_BOOL;
- InvokeHelper(DISPID_ENABLED, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- bNewValue);
- }
- BOOL CTOCControlDefault::GetEnabled()
- {
- BOOL result;
- InvokeHelper(DISPID_ENABLED, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- long CTOCControlDefault::GetHWnd()
- {
- long result;
- InvokeHelper(DISPID_HWND, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CTOCControlDefault::SetMousePointer(long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0xfffffdf7, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nNewValue);
- }
- long CTOCControlDefault::GetMousePointer()
- {
- long result;
- InvokeHelper(0xfffffdf7, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CTOCControlDefault::SetRefMouseIcon(LPDISPATCH newValue)
- {
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0xfffffdf6, DISPATCH_PROPERTYPUTREF, VT_EMPTY, NULL, parms,
- newValue);
- }
- CPicture CTOCControlDefault::GetMouseIcon()
- {
- LPDISPATCH pDispatch;
- InvokeHelper(0xfffffdf6, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&pDispatch, NULL);
- return CPicture(pDispatch);
- }
- long CTOCControlDefault::GetAppearance()
- {
- long result;
- InvokeHelper(DISPID_APPEARANCE, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CTOCControlDefault::SetAppearance(long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(DISPID_APPEARANCE, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nNewValue);
- }
- void CTOCControlDefault::SetBorderStyle(long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(DISPID_BORDERSTYLE, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nNewValue);
- }
- long CTOCControlDefault::GetBorderStyle()
- {
- long result;
- InvokeHelper(DISPID_BORDERSTYLE, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CTOCControlDefault::AboutBox()
- {
- InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- LPUNKNOWN CTOCControlDefault::GetActiveView()
- {
- LPUNKNOWN result;
- InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_UNKNOWN, (void*)&result, NULL);
- return result;
- }
- LPDISPATCH CTOCControlDefault::GetBuddy()
- {
- LPDISPATCH result;
- InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
- return result;
- }
- void CTOCControlDefault::HitTest(long x, long y, long* ItemType, LPUNKNOWN* BasicMap, LPUNKNOWN* Layer, LPUNKNOWN* Unk, VARIANT* Data)
- {
- static BYTE parms[] =
- VTS_I4 VTS_I4 VTS_PI4 VTS_PUNKNOWN VTS_PUNKNOWN VTS_PUNKNOWN VTS_PVARIANT;
- InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- x, y, ItemType, BasicMap, Layer, Unk, Data);
- }
- void CTOCControlDefault::Update()
- {
- InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CTOCControlDefault::SetActiveView(LPUNKNOWN ActiveView)
- {
- static BYTE parms[] =
- VTS_UNKNOWN;
- InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- ActiveView);
- }
- long CTOCControlDefault::GetLayerVisibilityEdit()
- {
- long result;
- InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CTOCControlDefault::SetLayerVisibilityEdit(long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x8, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nNewValue);
- }
- long CTOCControlDefault::GetLabelEdit()
- {
- long result;
- InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CTOCControlDefault::SetLabelEdit(long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x9, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nNewValue);
- }
- VARIANT CTOCControlDefault::GetCustomProperty()
- {
- VARIANT result;
- InvokeHelper(0xa, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
- return result;
- }
- void CTOCControlDefault::SetCustomProperty(const VARIANT& newValue)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0xa, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- &newValue);
- }
- void CTOCControlDefault::SetBuddyControl(LPDISPATCH pTOCBuddy)
- {
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0xb, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- pTOCBuddy);
- }
- LPDISPATCH CTOCControlDefault::GetObject()
- {
- LPDISPATCH result;
- InvokeHelper(0xc, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
- return result;
- }
- long CTOCControlDefault::GetKeyIntercept()
- {
- long result;
- InvokeHelper(0xd, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CTOCControlDefault::SetKeyIntercept(long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0xd, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nNewValue);
- }