Page 1 of 1

PostPosted: Mon Nov 25, 2002 4:24 am
by FrappyDan
I have written a few games that I would feel better releasing if I had full screen to enhance my graphics. I need to turn off the devicesip icon in the lower right corner and also the TitleBar. I've seen pocketC programs that do this but am unable to find the code for it. Can someone help me with this:?:

Thanks 8)


PostPosted: Mon Nov 25, 2002 5:56 am
by soinsg
I'm guessing that drawing straight over them might work. If that means covering buttons, you could always trap their events too.

PostPosted: Mon Nov 25, 2002 12:32 pm
by visorprismman
I agree if you write over the menu icon it will just cover over it. Then you can trap the menu button so it cannot be used.


PostPosted: Tue Nov 26, 2002 4:29 am
by FrappyDan
I've tried drawing over them but the screen coords 0,0 define the upper left corner of the screen just below the menu bar. The keyboard icon is still there after menu_off() and any drawing on the screen goes behind the keyboard icon. Is there a container that can be created to cover the pocket CRT window or something like that?


PostPosted: Tue Nov 26, 2002 10:29 am
by guy
To have your application use the full screen, place the following directive in your PocketC source file:


If you just want to get rid of the menu then use:

#pragma R3MENUOFF

If you do either of these then you have to make sure that you provide a mechanism for your users to get out of your program.

I think that these only work with the device compiler and not with the desktop version.

These directives cause the start and menu bar to be removed the moment that your application starts up, before your code starts running.

If the user switches away from the application and back again the menu bar and start bar may reappear. You can get rid of them again by calling the SHFullScreen() function (PocketPC only) which is in the Windows CE API interface library for PocketC, not in the default library. You can get the library from the link in my signature below.

PocketC CE API interface:
PCForm and CE API forum:

PostPosted: Thu Nov 28, 2002 1:18 am
by FrappyDan
FanTastic()! That is just what I was looking for. I really appreciate it!;)


PostPosted: Thu Dec 05, 2002 10:37 am
by John64
Thanks Guy,
This was a very useful solution. We all need the Full screen quite often.