summaryrefslogtreecommitdiff
path: root/uisimulator/win32/uisw32.c
diff options
context:
space:
mode:
authorFelix Arends <edx@rockbox.org>2002-06-01 20:56:38 +0000
committerFelix Arends <edx@rockbox.org>2002-06-01 20:56:38 +0000
commit647661c3bb8f70dea9c3ca199af0f5ba76a8fe35 (patch)
treeee2300f6c1733c0dfe4d15b232aa7589b635ccb1 /uisimulator/win32/uisw32.c
parent61648002b4cd4d2ae08132282c8d649de35326c4 (diff)
downloadrockbox-647661c3bb8f70dea9c3ca199af0f5ba76a8fe35.tar.gz
rockbox-647661c3bb8f70dea9c3ca199af0f5ba76a8fe35.zip
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
Diffstat (limited to 'uisimulator/win32/uisw32.c')
-rw-r--r--uisimulator/win32/uisw32.c7
1 files changed, 7 insertions, 0 deletions
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);
31HWND hGUIWnd; // the GUI window handle 31HWND hGUIWnd; // the GUI window handle
32unsigned int uThreadID; // id of mod thread 32unsigned int uThreadID; // id of mod thread
33PBYTE lpKeys; 33PBYTE lpKeys;
34bool bActive; // window active?
34 35
35// GUIWndProc 36// GUIWndProc
36// window proc for GUI simulator 37// window proc for GUI simulator
@@ -47,6 +48,12 @@ LRESULT GUIWndProc (
47 48
48 switch (uMsg) 49 switch (uMsg)
49 { 50 {
51 case WM_ACTIVATE:
52 if (LOWORD(wParam) == WA_ACTIVE || LOWORD(wParam) == WA_CLICKACTIVE)
53 bActive = true;
54 else
55 bActive = false;
56 return TRUE;
50 case WM_CREATE: 57 case WM_CREATE:
51 // load background image 58 // load background image
52 hBkgnd = (HBITMAP)LoadImage (GetModuleHandle (NULL), MAKEINTRESOURCE(IDB_UI), 59 hBkgnd = (HBITMAP)LoadImage (GetModuleHandle (NULL), MAKEINTRESOURCE(IDB_UI),