AnnSetWnd example for Visual Basic
Dim oldWnd As OLE_HANDLE
oldWnd = LEAD1.AnnGetWnd (hPlgn)
LEAD1.AnnSetWnd hPlgn, Command1.hWnd
LEAD1.AnnSetVisible hPlgn, False, 0, 0
LEAD1.AnnSetVisible hPlgn, True, 0, 0
MsgBox "will restore old window"
LEAD1.AnnSetWnd hPlgn, oldWnd