AnnEnumerateTextToken example for C++ 5 and later
void CTutorDlg::ExampleAnnEnumerateTextTokenTable(long hObject)
{
m_pRasterAnn->EnableFireEnumerateTextTokenTableEvent = TRUE;
m_pRasterAnn->AnnEnumerateTextToken();
}
void CRasterAnnSink::OnEnumerateTextTokenTable(long nTextTokenCount , CString bstrToken , CString bstrDescription , CString bstrTokenString , AnnTokenTextType TokenType )
{
if (TokenType == ANN_TOKEN_TEXT )
{
bstrToken = TEXT("F");
bstrDescription = TEXT("Company Name");
bstrTokenString = TEXT("Your Company Name");
}
else
bstrDescription = TEXT("Not ANN_TOKEN_TEXT");
m_pRasterAnn->StopFireEnumerateTextTokenTableEvent = FALSE;
}