summaryrefslogtreecommitdiff
path: root/navit/graphics/win32/graphics_win32.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-01-28 09:53:04 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-01-28 09:53:04 +0000
commitec7828786b52a378a49cfbc768c5ec91caed9b61 (patch)
treea2e1d87921fa1312ca0f454757cff0b9e3603afe /navit/graphics/win32/graphics_win32.c
parent2dc9f23d0a61c513f991040f5f5a7311f200d67f (diff)
downloadnavit-svn-ec7828786b52a378a49cfbc768c5ec91caed9b61.tar.gz
Fix:graphics_win32:Disable sip button in fullscreen mode
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4058 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/graphics/win32/graphics_win32.c')
-rw-r--r--navit/graphics/win32/graphics_win32.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/navit/graphics/win32/graphics_win32.c b/navit/graphics/win32/graphics_win32.c
index 2d0e4200..b5b28b84 100644
--- a/navit/graphics/win32/graphics_win32.c
+++ b/navit/graphics/win32/graphics_win32.c
@@ -70,6 +70,11 @@ struct window_priv
static HWND g_hwnd = NULL;
+#ifdef HAVE_API_WIN32_CE
+static int fullscr = 0;
+#endif
+
+
#ifndef GET_WHEEL_DELTA_WPARAM
#define GET_WHEEL_DELTA_WPARAM(wParam) ((short)HIWORD(wParam))
#endif
@@ -525,6 +530,15 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM l
case WM_KEYDOWN:
HandleKeyDown( gra_priv, wParam);
break;
+#ifdef HAVE_API_WIN32_CE
+ case WM_ENABLE:;
+ HWND hwndSip = FindWindow(L"MS_SIPBUTTON", NULL);
+ if (fullscr) {
+ // deactivate the SIP button
+ ShowWindow(hwndSip, SW_HIDE);
+ }
+ break;
+#endif
default:
return DefWindowProc(hwnd, Message, wParam, lParam);
}
@@ -537,6 +551,7 @@ static int fullscreen(struct window *win, int on)
#ifdef HAVE_API_WIN32_CE
HWND hwndTaskbar = FindWindow(L"HHTaskBar", NULL);
HWND hwndSip = FindWindow(L"MS_SIPBUTTON", NULL);
+ fullscr = on;
if (on) {
ShowWindow(hwndTaskbar, SW_HIDE);
MoveWindow(g_hwnd, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), FALSE);