AnnSetUser Example for C++ 4.0 and later 4.0 and later
Note: This topic is for Document/Medical only.
// hide the selected objects
m_LEAD1.AnnSetVisible(m_LEAD1.GetAnnContainer(), FALSE, ANNFLAG_RECURSE | ANNFLAG_SELECTED, "");
// set the selected objects to belong to user XXX
m_LEAD1.AnnSetUser(m_LEAD1.GetAnnContainer(), "", "xxx", TRUE);