The Windows code now uses PostMessage to send manager WM's instead of SendMessage.
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
* Windows 86Box Settings dialog handler.
|
* Windows 86Box Settings dialog handler.
|
||||||
*
|
*
|
||||||
* Version: @(#)win_settings.c 1.0.68 2018/10/23
|
* Version: @(#)win_settings.c 1.0.69 2018/10/24
|
||||||
*
|
*
|
||||||
* Authors: Miran Grca, <mgrca8@gmail.com>
|
* Authors: Miran Grca, <mgrca8@gmail.com>
|
||||||
* David Hrdlička, <hrdlickadavid@outlook.com>
|
* David Hrdlička, <hrdlickadavid@outlook.com>
|
||||||
@@ -162,7 +162,11 @@ image_list_init(HWND hwndList, const uint8_t *icon_ids)
|
|||||||
if (icon_ids[i] == 0)
|
if (icon_ids[i] == 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#ifdef __amd64__
|
||||||
|
hiconItem = LoadIcon(hinstance, (LPCWSTR) ((uint64_t) icon_ids[i]));
|
||||||
|
#else
|
||||||
hiconItem = LoadIcon(hinstance, (LPCWSTR) ((uint32_t) icon_ids[i]));
|
hiconItem = LoadIcon(hinstance, (LPCWSTR) ((uint32_t) icon_ids[i]));
|
||||||
|
#endif
|
||||||
ImageList_AddIcon(hSmall, hiconItem);
|
ImageList_AddIcon(hSmall, hiconItem);
|
||||||
DestroyIcon(hiconItem);
|
DestroyIcon(hiconItem);
|
||||||
|
|
||||||
@@ -2102,7 +2106,7 @@ recalc_location_controls(HWND hdlg, int is_add_dlg, int assign_id)
|
|||||||
EnableWindow(h, TRUE);
|
EnableWindow(h, TRUE);
|
||||||
|
|
||||||
if (assign_id)
|
if (assign_id)
|
||||||
next_free_scsi_id((uint8_t *) is_add_dlg ? &new_hdd.scsi_id : &temp_hdd[lv1_current_sel].scsi_id);
|
next_free_scsi_id((uint8_t *) (is_add_dlg ? &(new_hdd.scsi_id) : &(temp_hdd[lv1_current_sel].scsi_id)));
|
||||||
|
|
||||||
h = GetDlgItem(hdlg, IDC_COMBO_HD_ID);
|
h = GetDlgItem(hdlg, IDC_COMBO_HD_ID);
|
||||||
ShowWindow(h, SW_SHOW);
|
ShowWindow(h, SW_SHOW);
|
||||||
@@ -4471,7 +4475,7 @@ static void
|
|||||||
win_settings_communicate_closure(void)
|
win_settings_communicate_closure(void)
|
||||||
{
|
{
|
||||||
if (source_hwnd)
|
if (source_hwnd)
|
||||||
SendMessage((HWND) (uintptr_t) source_hwnd, WM_SENDSSTATUS, (WPARAM) 0, (LPARAM) 0);
|
PostMessage((HWND) (uintptr_t) source_hwnd, WM_SENDSSTATUS, (WPARAM) 0, (LPARAM) 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -4564,5 +4568,5 @@ win_settings_open(HWND hwnd)
|
|||||||
DialogBox(hinstance, (LPCWSTR)DLG_CONFIG, hwnd, win_settings_main_proc);
|
DialogBox(hinstance, (LPCWSTR)DLG_CONFIG, hwnd, win_settings_main_proc);
|
||||||
|
|
||||||
if (source_hwnd)
|
if (source_hwnd)
|
||||||
SendMessage((HWND) (uintptr_t) source_hwnd, WM_SENDSSTATUS, (WPARAM) 1, (LPARAM) 0);
|
PostMessage((HWND) (uintptr_t) source_hwnd, WM_SENDSSTATUS, (WPARAM) 1, (LPARAM) 0);
|
||||||
}
|
}
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
* user Interface module for WinAPI on Windows.
|
* user Interface module for WinAPI on Windows.
|
||||||
*
|
*
|
||||||
* Version: @(#)win_ui.c 1.0.34 2018/10/23
|
* Version: @(#)win_ui.c 1.0.35 2018/10/24
|
||||||
*
|
*
|
||||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||||
* Miran Grca, <mgrca8@gmail.com>
|
* Miran Grca, <mgrca8@gmail.com>
|
||||||
@@ -868,7 +868,7 @@ ui_init(int nCmdShow)
|
|||||||
* the hWnd and unique ID the application has given
|
* the hWnd and unique ID the application has given
|
||||||
* us. */
|
* us. */
|
||||||
if (source_hwnd)
|
if (source_hwnd)
|
||||||
SendMessage((HWND) (uintptr_t) source_hwnd, WM_SENDHWND, (WPARAM) unique_id, (LPARAM) hwndMain);
|
PostMessage((HWND) (uintptr_t) source_hwnd, WM_SENDHWND, (WPARAM) unique_id, (LPARAM) hwndMain);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Everything has been configured, and all seems to work,
|
* Everything has been configured, and all seems to work,
|
||||||
@@ -975,7 +975,7 @@ plat_pause(int p)
|
|||||||
|
|
||||||
/* Send the WM to a manager if needed. */
|
/* Send the WM to a manager if needed. */
|
||||||
if (source_hwnd)
|
if (source_hwnd)
|
||||||
SendMessage((HWND) (uintptr_t) source_hwnd, WM_SENDSTATUS, (WPARAM) !!dopause, (LPARAM) 0);
|
PostMessage((HWND) (uintptr_t) source_hwnd, WM_SENDSTATUS, (WPARAM) !!dopause, (LPARAM) 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user