Page 1 of 1

PostPosted: Fri Jun 15, 2001 4:31 am
by htefs
Hi all!
Is it possible, to control the taskbar on a WindowsCE-device with PocketC? I need to hide the taskbar, if my PocketC-program is running and show it again, if the program is finished. I use a HandheldPC (Jornada 680) and there is the usable screen very small, if the taskbar is shown...
Thanks, Helge

PostPosted: Fri Jun 15, 2001 7:33 am
by guy
This may work:

int iLastState ;

// Get current autohide state of task bar

iLastState = regrint(2, "Software\\Microsoft\\Shell\\Autohide", "") ;

// Attempt to hide the taskbar

regwint(2, "Software\\Microsoft\\Shell\\Autohide", "",1) ;

// Rest of code here

// Set task bar state back

regwint(2, "Software\\Microsoft\\Shell\\Autohide", "", iLastState) ;

The problem is that the registry change may not get seen without some sort of message being sent to Windows.

Easier to just tell your users to set the taskbar to autohide in the task bar settings.

Note that although the task bar is 26 pixels high, when it is hidden you only get 22 of them back. The bottom 4 pixels are used to redisplay the task bar using the pen.


PostPosted: Thu Jun 21, 2001 5:44 pm
by htefs
Hi Guy!
Thank you for the answer. That seems to work, but is not that, what I liked to have. I need something like SW_SHOW and SW_HIDE, but for the taskbar. e.g. something to see a bitmap in fullscreen, with the taskbar hidden and then switch back to normal mode, with the taskbar visible.
If I hide the menu on the top and hide the taskbar at the bottom, I'd have 20% more usable screen on my HPC (640x240)...
Maybe I can use "Software\\Microsoft\\Shell\\OnTop"...
Any ideas?
Greetings, Helge