AnnSelectRect example for Visual C++ 4.0 and later
m_Lead1.AnnSelectRect (m_Lead1.GetAnnContainer (), 10, 10, 200, 100);
m_Lead1.AnnSelectPoint (m_Lead1.GetAnnContainer(), 300, 300);
if(m_Lead1.AnnGetSelected (hPlgn))
{
m_Lead1.AnnRemove (hPlgn);
m_Lead1.AnnSetSelected (hPlgn, FALSE, FALSE);
}
else
m_Lead1.AnnInsert (m_Lead1.GetAnnContainer(), hPlgn, FALSE);
CString msg;
msg.Format("Left: %f, Top: %f, Width: %f, Height:%f",
(double)m_Lead1.GetAnnSelectRectLeft (m_Lead1.GetAnnContainer()),
(double)m_Lead1.GetAnnSelectRectTop (m_Lead1.GetAnnContainer()),
(double)m_Lead1.GetAnnSelectRectWidth (m_Lead1.GetAnnContainer()),
(double)m_Lead1.GetAnnSelectRectHeight (m_Lead1.GetAnnContainer()));