AnnNameRectLeft example for C++ 5.0 and later
//This sample displays the defining rectangle of the annotation hObject
void CVCsampleLoadMemoryDlg::SampleAnnNameRect(OLE_HANDLE hObject)
{
CString strMsg;
strMsg.Format("Ann Name Rect:\n\tleft: %f\n\ttop: %f\n\twidth: %f\n\theight: %f",
m_Lead1.GetAnnNameRectLeft (hObject),
m_Lead1.GetAnnNameRectTop (hObject),
m_Lead1.GetAnnNameRectWidth (hObject),
m_Lead1.GetAnnNameRectHeight (hObject)
);
MessageBox(strMsg);
}