Click to See Complete Forum and Search --> : Deskbar activating/deactivating


andrew_k
August 2nd, 2005, 06:18 AM
Hi all,

I have developed the deskbar like Google Desktop search bar.
Do anybody know how can I show/hide the deskbar programmatically (NOT via taskbar Toolbar menu) ? The Google Deskbar can do that. It can control the deskbar with tray icon menu.

Thanks,
Andrew

NoHero
August 2nd, 2005, 02:06 PM
Use Spy++ to find out either the name or the class name of the deskbar window, then use FindWindow() to find this window and retreive a HWND of it, and the use ShowWindow() on it, to hide/show it.

andrew_k
August 2nd, 2005, 03:46 PM
Hi,
Thanks for your reply.
The window does not exists until the deskbar is not loaded by taskbar. Now the single way to load my deskbar is to activate it in taskbar's Toolbars menu. I need to do it programmatically.
If I hide the deskbar window with ShowWindow(), it is still checked in taskbar's Toolbars menu and the place on taskbar is not released. It is not acceptable.

Thanks again.