Re: Hiding System Tray



Hi Naresh,

On Pocket PC, System tray window is a child of the top-level window
called "Desktop" which class name is "Desktop Explorer Window".
If you use Spy++, you can see the following window :

+--Desktop" (Desktop Explorer Window)
+--<No Name> (Worker)
+-- <No Name> (Worker) ---> this is the system tray bar
window
+-- plugin today wnd 1
+-- plugin today wnd 2
+...
+--<No Name> (StatStore Worker)

You can just hide this window, you don't need to hide all
"menu_worker" windows....

Best Regards,

Jice

-----------------------------------------------------------
www.manbolo.com
Games for Windows Mobile

On 29 oct, 16:46, Naresh Mirkhelkar
<NareshMirkhel...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi,
I have been trying to hide the "System Tray" over Today screen and I found
out that hiding the "menu_worker" would hide the tray.
The catch here is the below piece of code works fine only if it is run as
console application using VS.NET 2005. If I run it from File Explorer, it
will hide the Tray of file explorer and not on Today screen. Hence, it seems
it will get the handle of the current window.

As this has to be acheived from an application run during warm boot, how can
I get a handle of the Today screen menu worker.

public static void HideTaskBar(bool hide)
{
IntPtr hTaskBarWnd = FindWindow("menu_worker", "");

if (hTaskBarWnd.ToInt32() != 0)
{
ShowWindow(hTaskBarWnd, hide ? SW_HIDE : SW_SHOW);
}
}

Remote Spy++ shows that any any point of time there are multiple
menu_workers available, hence, is there any way to loop through all of the
them and hide them (and what will be the repercussions if all of them are
hidden).

Thanks,
Naresh


.



Relevant Pages

  • Re: perltray/tk intercept windows minimize function
    ... window manager subsystem. ... to determine what I need to do when using perltray. ... windows system tray. ... If you wish to unsubscribe from this mailing list, ...
    (comp.lang.perl.tk)
  • Re: perltray/tk intercept windows minimize function
    ... the system tray by interacting with the system tray icon as opposed to a ... double clicking the system tray icon redraws ... withdraws the main window and that sends an event to the application. ... Application can however withdraw the _icon_. ...
    (comp.lang.perl.tk)
  • Problems hiding the main form and displaying only a tray icon
    ... I want my application to run most of the time as just an notify icon ... visible in the system tray, with some dialogs windows that open if the user ... FixedToolWindow then it was no longer visible in the Alt-Tab menu, ... title bar the window expands to its normal size, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Single instance behaviour like Messenger and Outlook
    ... >I am trying to duplicate the single instance behaviour of Messenger ... > in the system tray. ... > Also, if there is anyone who knows how Messenger or Outlook does it, ... Unfortuneatly, the window ...
    (microsoft.public.dotnet.framework.windowsforms)
  • CoolHide - Help you hide/minimize window to Tray and hide icons from the system tray
    ... CoolHide can minimize ANY window/program to your System Tray or Hide them. ... It adds the option in the System Menu of the window (also known as the ... CoolHide helps you hide some of the less used icons from the system tray - ...
    (microsoft.public.sqlserver.security)