Re: Hiding System Tray
- From: jice <jeanchristophe.amiel@xxxxxxxxxxx>
- Date: Wed, 31 Oct 2007 07:44:31 -0700
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
.
- Prev by Date: SMS notification
- Next by Date: DataGrid on PPC
- Previous by thread: SMS notification
- Next by thread: DataGrid on PPC
- Index(es):
Relevant Pages
|