AnnNameBoundingRectLeft example for C++ 5.0 and later
//This sample displays the bounding rectangle of the annotation hObject
void CVCsampleLoadMemoryDlg::SampleAnnNameBoundingRect(OLE_HANDLE hObject)
{
CString strMsg;
strMsg.Format("Ann Name Bounding Rect:\n\tleft: %f\n\ttop: %f\n\twidth: %f\n\theight: %f",
m_Lead1.GetAnnNameBoundingRectLeft (hObject),
m_Lead1.GetAnnNameBoundingRectTop (hObject),
m_Lead1.GetAnnNameBoundingRectWidth (hObject),
m_Lead1.GetAnnNameBoundingRectHeight (hObject)
);
MessageBox(strMsg);
}