molayers.cpp
资源名称:MoLecture.rar [点击查看]
上传用户:qinfarui
上传日期:2022-08-10
资源大小:362k
文件大小:2k
源码类别:
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 "molayers.h"
- /////////////////////////////////////////////////////////////////////////////
- // CMoLayers properties
- short CMoLayers::GetCount()
- {
- short result;
- GetProperty(0x1, VT_I2, (void*)&result);
- return result;
- }
- void CMoLayers::SetCount(short propVal)
- {
- SetProperty(0x1, VT_I2, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMoLayers operations
- LPDISPATCH CMoLayers::Item(const VARIANT& index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &index);
- return result;
- }
- BOOL CMoLayers::Add(LPDISPATCH layer)
- {
- BOOL result;
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0x3, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
- layer);
- return result;
- }
- void CMoLayers::Remove(short index)
- {
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- index);
- }
- void CMoLayers::Clear()
- {
- InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CMoLayers::MoveTo(short fromIndex, short toIndex)
- {
- static BYTE parms[] =
- VTS_I2 VTS_I2;
- InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- fromIndex, toIndex);
- }
- void CMoLayers::MoveToTop(short index)
- {
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- index);
- }
- void CMoLayers::MoveToBottom(short index)
- {
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- index);
- }