[319/906] [win32 backend] fix transmition message to the parent.
The Qt mouvexoverlay example shows how to rotate the cube by moving (+click) the mouve over a qwidget using xoverlay interface.
This commit is contained in:
parent
dbdc0fb9eb
commit
8a77e2d859
@ -536,8 +536,14 @@ window_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
{
|
||||||
|
/* transmit messages to the parrent (ex: mouse/keyboard input) */
|
||||||
|
HWND parent_id = GetProp (hWnd, "gl_window_parent_id");
|
||||||
|
if (parent_id)
|
||||||
|
PostMessage (parent_id, uMsg, wParam, lParam);
|
||||||
return DefWindowProc (hWnd, uMsg, wParam, lParam);
|
return DefWindowProc (hWnd, uMsg, wParam, lParam);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
} else
|
} else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user