AnnGetScalarX example for Visual C++ 4.0
OLE_HANDLE hCont = m_Lead1.AnnCreate (ANNOBJECT_CONTAINER, FALSE, FALSE);
CString msg2;
msg2.Format("ScalarX: %f, ScalarY: %f, OffsetX: %f, OffsetY: %f",
(double)m_Lead1.AnnGetScalarX (hCont),
(double)m_Lead1.AnnGetScalarY (hCont),
(double)m_Lead1.AnnGetOffsetX (hCont),
(double)m_Lead1.AnnGetOffsetY (hCont));
AfxMessageBox(msg2);
m_Lead1.AnnSetScalarX (hCont, 1.5, FALSE);
m_Lead1.AnnSetScalarY (hCont, 1.5, FALSE);
m_Lead1.AnnSetOffsetX(hCont, 10, FALSE);
m_Lead1.AnnSetOffsetY (hCont, 20, FALSE);
msg2.Format("ScalarX: %f, ScalarY: %f, OffsetX: %f, OffsetY: %f",
(double)m_Lead1.AnnGetScalarX (hCont),
(double)m_Lead1.AnnGetScalarY (hCont),
(double)m_Lead1.AnnGetOffsetX (hCont),
(double)m_Lead1.AnnGetOffsetY (hCont));
AfxMessageBox(msg2);