Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change IE window icon and caption
Message
From
19/06/2003 15:37:53
 
General information
Forum:
Internet
Category:
Microsoft Internet Explorer
Miscellaneous
Thread ID:
00797751
Message ID:
00801914
Views:
18
>>>I use window.open to create new windows in my IE 6 based web application.
>>>
>>>Unfortunately, all those windows show a IE standard icon in windows taskbar and text
>>>
>>>- Microsoft Internet Explorer
>>>
>>>in the end of window title.
>>>
>>>Is it possible to create different icon for my windows and remove Microsoft Internet Explorer text from window title in Windows taskbar ?
>>
>>For the icon part, see this link:
>>http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/howto/shortcuticon.asp
>>
>>hth :)
>I think he is talking about the icon on the top part of the browser. Adding an icon for a link in the Address bar, and inside of the Favorites is pretty easy. But I think he was talking about inside the IE at the top.
>
>Morgan

Yes, I need different incons for different windows.
I excepted that IE can accept some message to change icon like it can
change the window title dynamically using windows api calls.
unfortunately this does not work from javascript since it is not possible to make windows api call from it.

First get ahold of the IE instance that corresponds to your window
(recent posts in Microsoft.Public.vb... have covered this). Then:
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal
wParam As Long, lParam As Any) As Long
Public Const WM_SETTEXT = &HC
myNewTitle = "The New Title Bar"
SendMessage IE.hwnd, WM_SETTEXT, 0&, ByVal CStr(myNewTitle)
Andrus
Previous
Reply
Map
View

Click here to load this message in the networking platform