From 89ec54ebd2f562c7db36ec99a0169ca53326bb72 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 24 Oct 2018 18:56:17 +0200 Subject: [PATCH] The WM_SENDSTATUS and WM_SENDSSTATUS window messages now send the emulator's hWnd in LPARAM. --- src/win/win_settings.c | 6 +++--- src/win/win_ui.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/win/win_settings.c b/src/win/win_settings.c index 2e61d71ff..6658c45c6 100644 --- a/src/win/win_settings.c +++ b/src/win/win_settings.c @@ -8,7 +8,7 @@ * * Windows 86Box Settings dialog handler. * - * Version: @(#)win_settings.c 1.0.69 2018/10/24 + * Version: @(#)win_settings.c 1.0.70 2018/10/24 * * Authors: Miran Grca, * David Hrdlička, @@ -4475,7 +4475,7 @@ static void win_settings_communicate_closure(void) { if (source_hwnd) - PostMessage((HWND) (uintptr_t) source_hwnd, WM_SENDSSTATUS, (WPARAM) 0, (LPARAM) 0); + PostMessage((HWND) (uintptr_t) source_hwnd, WM_SENDSSTATUS, (WPARAM) 0, (LPARAM) hwndMain); } @@ -4568,5 +4568,5 @@ win_settings_open(HWND hwnd) DialogBox(hinstance, (LPCWSTR)DLG_CONFIG, hwnd, win_settings_main_proc); if (source_hwnd) - PostMessage((HWND) (uintptr_t) source_hwnd, WM_SENDSSTATUS, (WPARAM) 1, (LPARAM) 0); + PostMessage((HWND) (uintptr_t) source_hwnd, WM_SENDSSTATUS, (WPARAM) 1, (LPARAM) hwndMain); } diff --git a/src/win/win_ui.c b/src/win/win_ui.c index 374d8fb0d..709663619 100644 --- a/src/win/win_ui.c +++ b/src/win/win_ui.c @@ -8,7 +8,7 @@ * * user Interface module for WinAPI on Windows. * - * Version: @(#)win_ui.c 1.0.35 2018/10/24 + * Version: @(#)win_ui.c 1.0.36 2018/10/24 * * Authors: Sarah Walker, * Miran Grca, @@ -975,7 +975,7 @@ plat_pause(int p) /* Send the WM to a manager if needed. */ if (source_hwnd) - PostMessage((HWND) (uintptr_t) source_hwnd, WM_SENDSTATUS, (WPARAM) !!dopause, (LPARAM) 0); + PostMessage((HWND) (uintptr_t) source_hwnd, WM_SENDSTATUS, (WPARAM) !!dopause, (LPARAM) hwndMain); }