diff options
Diffstat (limited to 'uisimulator/win32/uisw32.c')
-rw-r--r-- | uisimulator/win32/uisw32.c | 7 |
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); | |||
31 | HWND hGUIWnd; // the GUI window handle | 31 | HWND hGUIWnd; // the GUI window handle |
32 | unsigned int uThreadID; // id of mod thread | 32 | unsigned int uThreadID; // id of mod thread |
33 | PBYTE lpKeys; | 33 | PBYTE lpKeys; |
34 | bool 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), |