//com_wrapper.h
#define DISPID_NUMBER 0x01
#define DISPID_SQUARESIZE 0x02
#define DISPID_CENTERPOINT 0x03
......................................
// IAsdkSquareWrapper
public:
STDMETHOD(get_CenterPoint)(/*[out, retval]*/ VARIANT *pVal);
STDMETHOD(put_CenterPoint)(/*[in]*/ VARIANT newVal);
STDMETHOD(get_SquareSize)(/*[out, retval]*/ double *pVal);
STDMETHOD(put_SquareSize)(/*[in]*/ double newVal);
STDMETHOD(get_Number)(/*[out, retval]*/ short *pVal);
STDMETHOD(put_Number)(/*[in]*/ short newVal);
// OPM
//
// IOPMPropertyExtension
//
BEGIN_OPMPROP_MAP()
OPMPROP_ENTRY(0, 0x00000001, PROPCAT_Data, \
0, 0, 0, _T(""), 0, 1, IID_NULL, IID_NULL, "")
OPMPROP_ENTRY(0, 0x00000003, PROPCAT_Geometry, \
0, 0, 0, _T(""), 0, 1, IID_NULL, IID_NULL, "")
END_OPMPROP_MAP()
STDMETHOD(GetCategoryName)(THIS_
/* [in] */ PROPCAT propcat,
/* [in] */ LCID lcid,
/* [out] */ BSTR* pbstrName) { return S_FALSE;}
virtual HINSTANCE GetResourceInstance()
{
return _Module.GetResourceInstance();
}
STDMETHOD(GetElementValue)(
/* [in] */ DISPID dispID,
/* [in] */ DWORD dwCookie,
/* [out] */ VARIANT * pVarOut) ;
//Used for property expansion (currently variant types)
STDMETHOD(SetElementValue)(
/* [in] */ DISPID dispID,
/* [in] */ DWORD dwCookie,
/* [in] */ VARIANT VarIn) ;
//Used for property expansion (currently variant types)
STDMETHOD(GetElementStrings)(
/* [in] */ DISPID dispID,
/* [out] */ OPMLPOLESTR __RPC_FAR *pCaStringsOut,
/* [out] */ OPMDWORD __RPC_FAR *pCaCookiesOut) ;
//Used for property expansion (currently variant types)
STDMETHOD(GetElementGrouping)(
/* [in] */ DISPID dispID,
/* [out] */ short *groupingNumber) ;
//Used for property expansion (currently variant types)
STDMETHOD(GetGroupCount)(
/* [in] */ DISPID dispID,
/* [out] */ long *nGroupCnt) ;
STDMETHOD(GetPredefinedStrings)(
/* [in] */ DISPID dispID,
/* [out] */ CALPOLESTR *pCaStringsOut,
/* [out] */ CADWORD *pCaCookiesOut);
STDMETHOD(GetPredefinedValue)(
/* [in] */ DISPID dispID,
/* [out] */ DWORD dwCookie,
/* [out] */ VARIANT *pVarOut);
private:
//short mNumber;
};