|
-
April 20th, 2006, 04:01 AM
#1
FindWindow & Close Window
Are you often annoyed by the auto pop-up IE window?
That's why I want to write a program to find and close all such pop windows. I noticed a kind of window by spy++. Its class is "Internet Explorer_Server". And I tried the following code:
Dim hwnd As Long
hwnd = FindWindow("Internet Explorer_Server", vbNullString)
If hwnd <> 0 Then
SendMessage hwnd, WM_CLOSE, 0&, 0&
End If
The hwnd is always 0 though there is a pop window which class is "Internet Explorer_Server"!
What's the problem?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|