AnnAutoCursor example for C++ 5 and later
// This sample swaps the Default and Move annotation cursors
void CAnnSample2Dlg::SampleAnnAutoCursors(void )
{
IPictureDisp * phCursorMove ;
IPictureDisp * phCursorDefault ;
// Get copy of original cursors
phCursorDefault = m_pRasterAnn->GetAnnAutoCursor(ANN_AUTOCURSOR_DEFAULT);
phCursorMove = m_pRasterAnn->GetAnnAutoCursor(ANN_AUTOCURSOR_MOVE);
// Change
m_pRasterAnn->put_AnnAutoCursor(ANN_AUTOCURSOR_DEFAULT,phCursorMove);
m_pRasterAnn->put_AnnAutoCursor(ANN_AUTOCURSOR_MOVE, phCursorDefault);
}