diff options
author | woglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-01-28 16:26:03 +0000 |
---|---|---|
committer | woglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-01-28 16:26:03 +0000 |
commit | 597dfa811c599ce16ed6a777b63ceb3b6e2f2b75 (patch) | |
tree | d7b86c1df7168c81f73cb8a5964ce208d9720c3f | |
parent | ee08060c7fa7c860e45697c9da9adc755b0707d7 (diff) | |
download | navit-svn-597dfa811c599ce16ed6a777b63ceb3b6e2f2b75.tar.gz |
Fix:graphics/win32: WM_SETFOCUS and WM_KILLFOCUS seems to work better for #713, thanks to thomas0782 for the hint and test
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4060 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r-- | navit/graphics/win32/graphics_win32.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/navit/graphics/win32/graphics_win32.c b/navit/graphics/win32/graphics_win32.c index b5b28b84..be92e924 100644 --- a/navit/graphics/win32/graphics_win32.c +++ b/navit/graphics/win32/graphics_win32.c @@ -531,13 +531,20 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM l HandleKeyDown( gra_priv, wParam); break; #ifdef HAVE_API_WIN32_CE - case WM_ENABLE:; - HWND hwndSip = FindWindow(L"MS_SIPBUTTON", NULL); + case WM_SETFOCUS: if (fullscr) { + HWND hwndSip = FindWindow(L"MS_SIPBUTTON", NULL); // deactivate the SIP button ShowWindow(hwndSip, SW_HIDE); } break; + case WM_KILLFOCUS: + if (fullscr != 1) { + HWND hwndSip = FindWindow(L"MS_SIPBUTTON", NULL); + // active the SIP button + ShowWindow(hwndSip, SW_SHOW); + } + break; #endif default: return DefWindowProc(hwnd, Message, wParam, lParam); |