Здравствуйте, kreek, Вы писали:
K>...Мог бы набить руками — да не знаю как и чего.
K>Помогите.
.idl
[propget, id(57), helpstring("scale maximum value")]
HRESULT maxScaleValue([out, retval] double* pVal);
[propput, id(57), helpstring("scale maximum value")]
HRESULT maxScaleValue([in] double pVal);
.h
STDMETHOD(get_maxScaleValue)(double* pValue);
STDMETHOD(put_maxScaleValue)(double value);
.cpp
HRESULT AxPlateViewer::put_maxScaleValue(double value)
{
m_scaleWnd.setMaxValue(value);
return S_OK;
}
//------------------------------------------------------------------------------
HRESULT AxPlateViewer::get_maxScaleValue(double* pValue)
{
CHECK_PTR(pValue);
*pValue = m_scaleWnd.maxValue();
return S_OK;
}