AnnSetAutoText Example for C++ 4.0 and later

Note: This topic is for Document/Medical only.

This example modifies the text string that is used for the undo option on the annotation pop-up menu.

CString TestText;
TestText = m_Lead1.AnnGetAutoText(ANNAUTOTEXT_MENU_UNDO);
TestText = TestText + " - New";
m_Lead1.AnnSetAutoText(ANNAUTOTEXT_MENU_UNDO, TestText);