Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
IE
ie55.activexcontrol
ie55.add_ons
ie55.browser
ie55.com.codedownload
ie55.css
ie55.databinding
ie55.dhtml
ie55.dhtml.authoring
ie55.dhtml.behaviors
ie55.dhtml.scripting
ie55.icw
ie55.misc
ie55.multimedia
ie55.oe.stationery
ie55.outlookexpress
ie55.programming
ie55.setup
ie55.webbrowser_ctl
ie6.browser
ie6.ieak
ie6.oe.wishlist
ie6.setup
ie6_oe.stationery
ie6_outlookexpress
  
 
date: Mon, 27 Feb 2006 13:33:13 -0800,    group: microsoft.public.windows.inetexplorer.ie55.programming.dhtml        back       


destroying a window   
I have been trying various methods to destroy windows, but can't seem to 
make them work.  I can set focus api correctly, and bring the application to 
the foregrounds, but destroywindow doesn't kill the window.

Does anyone have an example for this that really works?


Thanks.

Scott Baxter

  Private Declare Function DestroyWindow Lib "user32" (ByVal hwnd As Long) 
As Long

  hHandle = FindWindowEx(0&, 0&, vbNullString,   "File Download")
Call DestroyWindow(hHandle)
date: Mon, 27 Feb 2006 13:33:13 -0800   author:   Web Search Store

Re: destroying a window   
"Web Search Store"  wrote in message 
news:%23vvzqV%23OGHA.3360@TK2MSFTNGP09.phx.gbl...
>I have been trying various methods to destroy windows, but can't seem to 
>make them work.  I can set focus api correctly, and bring the application 
>to the foregrounds, but destroywindow doesn't kill the window.
>
> Does anyone have an example for this that really works?
>
>
> Thanks.
>
> Scott Baxter
>
>  Private Declare Function DestroyWindow Lib "user32" (ByVal hwnd As Long) 
> As Long
>
>  hHandle = FindWindowEx(0&, 0&, vbNullString,   "File Download")
> Call DestroyWindow(hHandle)

There's quite a few great samples here that may help.

Process Related
http://www.thescarms.com/vbasic/VBProcessRelated.asp

Window Related Functions
http://www.thescarms.com/vbasic/VBWindowFunctions.asp

-- 
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Freeware 4 color Gradient Frame? http://www.vbsight.com/GradFrameCTL.htm
date: Tue, 28 Feb 2006 08:17:17 -0800   author:   Ken Halter

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us