AnnSetWnd Example for Visual C++
long oldWnd = m_pRasterAnn->AnnGetWnd (hPlgn);
m_pRasterAnn->AnnSetWnd (hPlgn, (long)m_hWnd);
m_pRasterAnn->AnnSetVisible (hPlgn, FALSE, 0, "");
m_pRasterAnn->AnnSetVisible(hPlgn, TRUE, 0, "");
AfxMessageBox(TEXT("will restore old window"));
m_pRasterAnn->AnnSetWnd (hPlgn, oldWnd);