|
-
Jun 27th, 2004, 10:28 AM
#1
Thread Starter
Addicted Member
Reinitializing Internet Explorer in VB
Hi,
I wrote a program to change the Internet Explorer branding logo (upper right directly below the "X" of the Ie window). If Ie is not running, everything works as expected. But when Ie is running, my program changes the "animated flag" to my own branding logo. However, the logo won't physically display to the new logo until Ie is closed and reopened. My question is, are there APIs that I can call to reinitialize Ie to get the affect just as I close and reopen Ie?
BTW, F5 or regular refresh on Ie woundn't solve the problem
Thanks in advance,
PhiL
Last edited by Iat; Jun 27th, 2004 at 10:34 AM.
-
Jun 27th, 2004, 04:30 PM
#2
assuming you have the window handle of the internet explorer window , you can use the UpdateWindow api to show any changes you have made
VB Code:
[color=blue]Private Declare Function[/color] UpdateWindow [color=blue]Lib[/color] "user32.dll" ([color=blue]ByVal[/color] hwnd [color=blue]As Long[/color]) [color=blue]As Long[/color]
[COLOR=green]'/// to use ....[/COLOR]
[COLOR=blue]Dim[/COLOR] handle [COLOR=blue]As Long[/COLOR]
handle = " * * * the handle of your internet explorer window here * * * "
UpdateWindow handle
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
-
Jun 28th, 2004, 05:23 AM
#3
Fanatic Member
quite interested to know if this worked! did it?
cheers,
wc.
When your car breaks down,
close all windows and retry 
=> please rate all users posts! <=
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
|