AnnSetWnd example for Visual C++ 4.0 and later
OLE_HANDLE oldWnd = m_Lead1.AnnGetWnd (hPlgn);
m_Lead1.AnnSetWnd (hPlgn, (OLE_HANDLE)m_hWnd);
m_Lead1.AnnSetVisible (hPlgn, FALSE, 0, 0);
m_Lead1.AnnSetVisible(hPlgn, TRUE, 0, 0);
AfxMessageBox("will restore old window");
m_Lead1.AnnSetWnd(hPlgn, oldWnd);