What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [request] hide MSN Messenger from the task bar, while it remains in the system tray?

[request] hide MSN Messenger from the task bar, while it remains in the system tray?
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [request] hide MSN Messenger from the task bar, while it remains in the system tr
quote:
Originally posted by CookieRevised
(...)

PSS: From the msdn library:
quote:
"When you create a window, the taskbar examines the window’s extended style to see if either the WS_EX_APPWINDOW (0x40000) or WS_EX_TOOLWINDOW (defined as 0x80) style is turned on. If WS_EX_APPWINDOW is turned on, the taskbar shows a button for the window, and if WS_EX_ TOOLWINDOW is turned on, the taskbar does not show a button for the window. A window should never have both of these extended styles. If the window doesn't have either of these styles, the taskbar decides to create a button if the window is unowned and does not create a button if the window is owned."

(...)

From the MSDN library:
quote:
WS_EX_NOACTIVATE
Windows 2000/XP: A top-level window created with this style does not become the foreground window when the user clicks it. The system does not bring this window to the foreground when the user minimizes or closes the foreground window.

To activate the window, use the SetActiveWindow or SetForegroundWindow function.

The window does not appear on the taskbar by default. To force the window to appear on the taskbar, use the WS_EX_APPWINDOW style.


(...)

PS: For the current use in this script:

The showing and hiding of the window isn't needed at all since this function is called before the window is actually shown (as it is now). Setting the new position (as this is often required after a style change since many styles are cached and only read again when you at least set the position of the window (see msdn library again)) or even simply showing the window will be done already by WLM itself.

Also, the "If Then Else" isn't really needed for this script of course, as you will always call the function with the parameter 'false' anyways.


(...)

quote:
Originally posted by CookieRevised
I know about this though, but don't consider it a bug but a known limitation (:p) because as was stated:



It is simply because of WS_EX_NOACTIVATE. If there is a way (event) to know when the user clicks the window, you could call the SetForegroundWindow or SetActiveWindow API....

There is probably a workaround (eg: by simply making a hidden window as the owner of the contactlist, or etc...), but I haven't the time atm to make it. (Ideally you manipulate the taskbar itself and leave the contactlist window totally alone; has probably the advantage that WLM will still be shown in the alt-tab list too)

This post was edited on 06-26-2006 at 07:51 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
06-26-2006 07:47 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[request] hide MSN Messenger from the task bar, while it remains in the system tray? - by bungleMX on 06-26-2006 at 02:52 AM
RE: [request] hide MSN Messenger from the task bar, while it remains in the system tray? - by matty on 06-26-2006 at 03:18 AM
RE: RE: [request] hide MSN Messenger from the task bar, while it remains in the syste - by bungleMX on 06-26-2006 at 04:23 AM
RE: [request] hide MSN Messenger from the task bar, while it remains in the system tray? - by Mike on 06-26-2006 at 06:06 AM
RE: RE: [request] hide MSN Messenger from the task bar, while it remains in the syste - by bungleMX on 06-26-2006 at 07:43 PM
RE: RE: [request] hide MSN Messenger from the task bar, while it remains in the syste - by bungleMX on 06-27-2006 at 01:55 AM
RE: [request] hide MSN Messenger from the task bar, while it remains in the system tr - by Menthix on 06-26-2006 at 06:08 AM
RE: RE: [request] hide MSN Messenger from the task bar, while it remains in the syste - by bungleMX on 06-26-2006 at 07:44 PM
RE: [request] hide MSN Messenger from the task bar, while it remains in the system tr - by CookieRevised on 06-26-2006 at 07:47 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On