mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-08 11:52:02 +08:00
handle MSG_MANAGE_MSGTHREAD message
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user