Click here to Skip to main content
13,352,879 members (46,839 online)
Click here to Skip to main content
Add your own
alternative version


40 bookmarked
Posted 26 Oct 2002

Having full screen without accessing the SHFullScreen API

, 26 Oct 2002
Rate this:
Please Sign up or sign in to vote.
Add full screen capability in your PocketPC applications.


This article shows you how to make a full screen PocketPC application by removing the taskbar, menubar, SIP button as well as reposition the input panel by your own code.


If you're a Win32 application developer, then you'll be pretty familiar about the two main APIs that I have use in this sample code.

  • FindWindow
  • MoveWindow

As well as, a seldom used API in most of you daily work with, SystemParametersInfo.

Using the code

There are only two functions that you require to include into your project workspace and they are:

  • InitFullScreen(void)
  • DoFullScreen(bool)

When you access the InitFullScreen, it will get the current desktop window working area followed by setting the working area to 240 x 320 (full screen in PocketPC). Subsequently, it will locate the TaskBar, InputPanel (SIP) and the SIP button window handle and store the original window working area with the respective defined window class.

NOTE: The TaskBar, SIP Button and InputPanel window class can be found with the Spy++ tool bundle with the eVC++ IDE.

Later, you you access the DoFullScreen, it will move the TaskBar, SIP Button to the button of the windows working area (320). Which there will not be visible in the newly defined window working area (240 x 320) and vice-versa.

For more detail of the code, please refer to the FullScreen.h/cpp. Where all the routine job was done within this two function.

Below is the first step you need to do before accessing the above mentioned functions:

Add the following code into your main project header or cpp file.
extern RECT rtDesktop;
extern RECT rtNewDesktop;
extern RECT rtTaskBar;
extern int  InitFullScreen (void);
extern int  DoFullScreen   (bool);

Second, you require to call the InitFullScreen function under the WM_CREATE message as:

// Initialize full screen capability

Now, you're ready to switch your application between full and non-full screen mode by the following code:

// Switch to full screen mode

// Switch to non-full screen mode

Points of interest

After you step through the sample code, you will learn most of the controls in MS Windows can easily be over taken by other applications provided you have successfully obtained the respective window handle (HWND).

Hence, you can start having fun by messing all the controls around your desktop. :)


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer
Australia Australia
Passion to be a software architect and solution researcher in enterprise solutions by simplify and unify the existing complex manual paper works into an automated environment friendly, comprehensive and dynamic workflow process system.

You may also be interested in...


Comments and Discussions

GeneralShowWindow Pin
matlox14-Jul-06 3:53
membermatlox14-Jul-06 3:53 
GeneralGlobal variables and hardcoded strings Pin
Buontempo30-Mar-06 1:23
memberBuontempo30-Mar-06 1:23 
Generaluse code with C# under VS.NET Pin
zrihen16-Aug-05 0:43
memberzrihen16-Aug-05 0:43 
GeneralRe: use code with C# under VS.NET Pin
hackzai16-Aug-05 1:48
memberhackzai16-Aug-05 1:48 
GeneralRe: use code with C# under VS.NET Pin
conversion::magro24-Sep-05 13:57
memberconversion::magro24-Sep-05 13:57 
GeneralTitles Pin
Lagwagon7-Mar-05 9:52
memberLagwagon7-Mar-05 9:52 
GeneralProblem switching back to normal mode Pin
Ffelagund23-Feb-05 2:30
memberFfelagund23-Feb-05 2:30 
GeneralRe: Problem switching back to normal mode Pin
hackzai23-Feb-05 21:02
memberhackzai23-Feb-05 21:02 
GeneralRe: Problem switching back to normal mode Pin
Ffelagund23-Feb-05 22:41
memberFfelagund23-Feb-05 22:41 
GeneralRe: Problem switching back to normal mode Pin
GEHI G5-May-06 22:21
memberGEHI G5-May-06 22:21 
GeneralRe: Problem switching back to normal mode Pin
DuqueFP17-Mar-09 11:08
memberDuqueFP17-Mar-09 11:08 
GeneralProblem on PocketPC 2003 Mobile Pin
seanigan5-Oct-04 8:25
memberseanigan5-Oct-04 8:25 
GeneralRe: Problem on PocketPC 2003 Mobile Pin
hackzai5-Oct-04 15:59
susshackzai5-Oct-04 15:59 
GeneralRe: Problem on PocketPC 2003 Mobile Pin
Nigel621-Feb-05 6:25
memberNigel621-Feb-05 6:25 
GeneralProblem Pin
Mukkie14-Nov-03 23:08
memberMukkie14-Nov-03 23:08 
GeneralRe: Problem Pin
TemplMetaProg11-Dec-03 6:52
memberTemplMetaProg11-Dec-03 6:52 
GeneralRe: Problem Pin
K-PAX25-Dec-03 1:33
memberK-PAX25-Dec-03 1:33 
Generalsame in VS.Net and Win CE.Net Pin
schorschii18-Aug-03 21:26
memberschorschii18-Aug-03 21:26 
GeneralI'd need to use full screen, but... Pin
landog16-Jul-03 4:49
memberlandog16-Jul-03 4:49 
GeneralRe: I'd need to use full screen, but... Pin
John M. Drescher16-Jul-03 5:24
memberJohn M. Drescher16-Jul-03 5:24 
QuestionFullscreen with MFC? Pin
S.Kirr9-Apr-03 0:04
memberS.Kirr9-Apr-03 0:04 
AnswerRe: Fullscreen with MFC? Pin
slomoman10-Oct-03 4:44
memberslomoman10-Oct-03 4:44 
GeneralRe: Fullscreen with in Pocket PC Pin
redman_888812-Mar-05 1:16
memberredman_888812-Mar-05 1:16 
GeneralWM_ACTIVATE Message Pin
K-PAX9-Dec-02 14:31
memberK-PAX9-Dec-02 14:31 
GeneralOnKillFocus / OnSetFocus Pin
Elek4-Dec-02 3:57
sussElek4-Dec-02 3:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.180111.1 | Last Updated 27 Oct 2002
Article Copyright 2002 by CT CHANG
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid