=================================================
Windows Mobile
DWORD dwState;
RECT rc;
if (wParam == WA_CLICKACTIVE || wParam == WA_ACTIVE) {
// To switch to full screen mode, first hide all of the shell parts.
dwState = (SHFS_HIDETASKBAR
| SHFS_HIDESTARTICON
| SHFS_HIDESIPBUTTON);
SHFullScreen(hWnd, dwState);
// Next resize the main window to the size of the screen.
SetRect(&rc, 0, 0, GetSystemMetrics(SM_CXSCREEN),
GetSystemMetrics(SM_CYSCREEN));
MoveWindow(hWnd, rc.left, rc.top, rc.right-rc.left,
rc.bottom-rc.top, TRUE);
ShowWindow(hWnd, SW_SHOWNORMAL);
}
// The window is being deactivated... restore it to non-fullscreen
else {
// To switch to normal mode, first show all of the shell parts.
dwState = (SHFS_SHOWTASKBAR
| SHFS_SHOWSTARTICON
| SHFS_SHOWSIPBUTTON);
SHFullScreen(hWnd, dwState);
// Next resize the main window to the size of the work area.
SystemParametersInfo(SPI_GETWORKAREA, 0, &rc, FALSE);