⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cwcursor.cpp

📁 用can传输图像
💻 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 "cwcursor.h"

// Dispatch interfaces referenced by this interface
#include "CWPlot.h"


/////////////////////////////////////////////////////////////////////////////
// CCWCursor properties

VARIANT CCWCursor::GetXPosition()
{
	VARIANT result;
	GetProperty(0x1, VT_VARIANT, (void*)&result);
	return result;
}

void CCWCursor::SetXPosition(const VARIANT& propVal)
{
	SetProperty(0x1, VT_VARIANT, &propVal);
}

VARIANT CCWCursor::GetYPosition()
{
	VARIANT result;
	GetProperty(0x2, VT_VARIANT, (void*)&result);
	return result;
}

void CCWCursor::SetYPosition(const VARIANT& propVal)
{
	SetProperty(0x2, VT_VARIANT, &propVal);
}

long CCWCursor::GetSnapMode()
{
	long result;
	GetProperty(0x3, VT_I4, (void*)&result);
	return result;
}

void CCWCursor::SetSnapMode(long propVal)
{
	SetProperty(0x3, VT_I4, propVal);
}

unsigned long CCWCursor::GetColor()
{
	unsigned long result;
	GetProperty(0x4, VT_I4, (void*)&result);
	return result;
}

void CCWCursor::SetColor(unsigned long propVal)
{
	SetProperty(0x4, VT_I4, propVal);
}

long CCWCursor::GetCrosshairStyle()
{
	long result;
	GetProperty(0x5, VT_I4, (void*)&result);
	return result;
}

void CCWCursor::SetCrosshairStyle(long propVal)
{
	SetProperty(0x5, VT_I4, propVal);
}

long CCWCursor::GetPointIndex()
{
	long result;
	GetProperty(0x6, VT_I4, (void*)&result);
	return result;
}

void CCWCursor::SetPointIndex(long propVal)
{
	SetProperty(0x6, VT_I4, propVal);
}

BOOL CCWCursor::GetEnabled()
{
	BOOL result;
	GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
	return result;
}

void CCWCursor::SetEnabled(BOOL propVal)
{
	SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
}

long CCWCursor::GetPointStyle()
{
	long result;
	GetProperty(0x7, VT_I4, (void*)&result);
	return result;
}

void CCWCursor::SetPointStyle(long propVal)
{
	SetProperty(0x7, VT_I4, propVal);
}

CCWPlot CCWCursor::GetPlot()
{
	LPDISPATCH pDispatch;
	GetProperty(0x8, VT_DISPATCH, (void*)&pDispatch);
	return CCWPlot(pDispatch);
}

void CCWCursor::SetPlot(LPDISPATCH propVal)
{
	SetProperty(0x8, VT_DISPATCH, propVal);
}

BOOL CCWCursor::GetVisible()
{
	BOOL result;
	GetProperty(0x9, VT_BOOL, (void*)&result);
	return result;
}

void CCWCursor::SetVisible(BOOL propVal)
{
	SetProperty(0x9, VT_BOOL, propVal);
}

CString CCWCursor::GetName()
{
	CString result;
	GetProperty(0xa, VT_BSTR, (void*)&result);
	return result;
}

void CCWCursor::SetName(LPCTSTR propVal)
{
	SetProperty(0xa, VT_BSTR, propVal);
}

/////////////////////////////////////////////////////////////////////////////
// CCWCursor operations

void CCWCursor::SetPosition(const VARIANT& XPosition, const VARIANT& YPosition)
{
	static BYTE parms[] =
		VTS_VARIANT VTS_VARIANT;
	InvokeHelper(0xb, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
		 &XPosition, &YPosition);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -