AnnSetOptions example for Visual C++
void CAnnCOMView::ExampleAnnSetOptions()
{
long lOptions;
CString strMsg;
lOptions = m_pltAnn->AnnGetOptions();
if((lOptions & ANN_OPTIONS_NEW_SIDE_HANDLES))
{
lOptions &= !ANN_OPTIONS_NEW_SIDE_HANDLES;
strMsg = TEXT("Draw a rectangular object and select it. Note there are no side handles. Run this example again to enable the side handles.");
}
else
{
lOptions |= ANN_OPTIONS_NEW_SIDE_HANDLES;
strMsg = TEXT("Draw a rectangular object and select it. Note the side handles. Run this example again to disable the side handles.");
}
m_pltAnn->AnnSetOptions(lOptions);
MessageBox(strMsg);
}