36 lines
797 B
C++
36 lines
797 B
C++
// CVcAxisGrid.h : 由 Microsoft Visual C++ 创建的 ActiveX 控件包装器类的声明
|
|
|
|
#pragma once
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CVcAxisGrid
|
|
|
|
class CVcAxisGrid : public COleDispatchDriver
|
|
{
|
|
public:
|
|
CVcAxisGrid() {} // 调用 COleDispatchDriver 默认构造函数
|
|
CVcAxisGrid(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
|
|
CVcAxisGrid(const CVcAxisGrid& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
|
|
|
|
// 特性
|
|
public:
|
|
|
|
// 操作
|
|
public:
|
|
|
|
LPDISPATCH get_MinorPen()
|
|
{
|
|
LPDISPATCH result;
|
|
InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, nullptr);
|
|
return result;
|
|
}
|
|
LPDISPATCH get_MajorPen()
|
|
{
|
|
LPDISPATCH result;
|
|
InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, nullptr);
|
|
return result;
|
|
}
|
|
|
|
|
|
};
|