Hide Taskbar on HPC

Discuss PocketC for CE (including Desktop Edition)

Postby htefs on Fri Jun 15, 2001 4:31 am

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
htefs
 
Posts: 14
Joined: Fri Mar 23, 2001 1:31 pm
Location: Germany

Postby guy on Fri Jun 15, 2001 7:33 am

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.


Guy
Guy
[url]mailto:pcform@pcform.net[/url]
http://www.pcform.net
PocketC CE API interface: http://www.networkdynamics.net/PCForm.html#library
PCForm and CE API forum: http://www.networkdynamics.net/forum
guy
 
Posts: 879
Joined: Thu Dec 07, 2000 8:58 am
Location: United Kingdom

Postby htefs on Thu Jun 21, 2001 5:44 pm

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
htefs
 
Posts: 14
Joined: Fri Mar 23, 2001 1:31 pm
Location: Germany


Return to PocketC for CE

Who is online

Users browsing this forum: No registered users and 1 guest

cron