From 647661c3bb8f70dea9c3ca199af0f5ba76a8fe35 Mon Sep 17 00:00:00 2001 From: Felix Arends Date: Sat, 1 Jun 2002 20:56:38 +0000 Subject: Player compatible code, interface still needs some changes for player git-svn-id: svn://svn.rockbox.org/rockbox/trunk@874 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/win32/uisw32.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'uisimulator/win32/uisw32.c') diff --git a/uisimulator/win32/uisw32.c b/uisimulator/win32/uisw32.c index 87b96f2017..0b2f88066c 100644 --- a/uisimulator/win32/uisw32.c +++ b/uisimulator/win32/uisw32.c @@ -31,6 +31,7 @@ extern void new_key(int key); HWND hGUIWnd; // the GUI window handle unsigned int uThreadID; // id of mod thread PBYTE lpKeys; +bool bActive; // window active? // GUIWndProc // window proc for GUI simulator @@ -47,6 +48,12 @@ LRESULT GUIWndProc ( switch (uMsg) { + case WM_ACTIVATE: + if (LOWORD(wParam) == WA_ACTIVE || LOWORD(wParam) == WA_CLICKACTIVE) + bActive = true; + else + bActive = false; + return TRUE; case WM_CREATE: // load background image hBkgnd = (HBITMAP)LoadImage (GetModuleHandle (NULL), MAKEINTRESOURCE(IDB_UI), -- cgit v1.2.3