From 32e0725baeefb2159e8cdf4d755f6c0821776222 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Tue, 18 Feb 2020 22:21:39 +0800 Subject: [PATCH] handle MSG_MANAGE_MSGTHREAD message --- src/kernel/desktop-procs.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/kernel/desktop-procs.c b/src/kernel/desktop-procs.c index 5cec714c..b4918787 100644 --- a/src/kernel/desktop-procs.c +++ b/src/kernel/desktop-procs.c @@ -4582,9 +4582,11 @@ static LRESULT DesktopWinProc (HWND hWnd, UINT message, case MSG_CTRLCLASSDATAOP: return (LRESULT)gui_ControlClassDataOp (wParam, (WNDCLASS*)lParam); + /* Since 5.0.0 */ case MSG_REGISTERHOOKFUNC: return (LRESULT)dskRegisterHookFunc ((int)wParam, (HOOKINFO*)lParam); + /* Since 5.0.0 */ case MSG_REGISTERHOOKWIN: if (mgIsServer) { return (LRESULT)dskRegisterHookWin (0, (HWND)wParam, (DWORD)lParam); @@ -4594,6 +4596,7 @@ static LRESULT DesktopWinProc (HWND hWnd, UINT message, } break; + /* Since 5.0.0 */ case MSG_UNREGISTERHOOKWIN: if (mgIsServer) { return (LRESULT)dskUnregisterHookWin (0, (HWND)wParam); @@ -4603,6 +4606,14 @@ static LRESULT DesktopWinProc (HWND hWnd, UINT message, } break; +#ifdef _MGHAVE_VIRTUAL_WINDOW + /* Since 5.0.0 */ + case MSG_MANAGE_MSGTHREAD: + if (wParam == MSGTHREAD_SIGNIN) + return dskRegisterMsgQueue ((MSGQUEUE*)lParam); + return dskUnregisterMsgQueue ((MSGQUEUE*)lParam); +#endif + case MSG_IME_REGISTER: if (mgIsServer) return srvRegisterIMEWnd ((HWND)wParam);