This function can be used to take over certain areas of the screen. It is used to modify the taskbar, Input Panel button, or Start menu icon.

BOOL SHFullScreen (
  HWND hwndRequester,
  DWORD dwState


The top-level window handle requesting the full-screen state. If you are using one of the SHFS_HIDE* flags, this window must be the foreground window or the function will fail.
This parameter will contain one of the following states.
State Description
SHFS_SHOWTASKBAR Return the taskbar to its topmost state.
SHFS_HIDETASKBAR Put the taskbar at the bottom of the z-order. Note that a game or an application that requires take-over of the entire screen may use this flag. It is the responsibility of the application to make sure it is sized FULL SCREEN before using this flag. Otherwise, it will appear as though the function did nothing.
SHFS_SHOWSIPBUTTON Return the Input Panel button to its visible state.
SHFS_HIDESIPBUTTON Hide the Input Panel button.
SHFS_SHOWSTARTICON Return the Start button icon to the navigation bar.
SHFS_HIDESTARTICON Hide the Start button icon on the navigation bar. When the Start icon is hidden, the shell is in a special state in which clicking or tapping the navigation bar will not display the drop-down Start menu. The navigation bar is essentially disabled when in this state. While in this mode, WM_LBUTTONDOWN and WM_LBUTTONUP messages will be forwarded to hwndRequester. This allows an application to drop out of this mode by calling this function with the SHFS_SHOWSTARTICON, when the user clicks or taps the navigation bar.

Return Values

TRUE indicates success. FALSE indicates failure.


Pocket PC: Windows Mobile 2000 and later
OS Versions: Windows CE 3.0 and later
Header: aygshell.h
Library: aygshell.lib

Send feedback on this topic to the authors.

© 2005 Microsoft Corporation. All rights reserved.