[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:
Julien Isorce 2009-03-06 22:43:41 +01:00 committed by Matthew Waters
parent 9584a5ddfd
commit b5778a90d7

View file

@ -536,7 +536,13 @@ window_proc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return TRUE;
default:
return DefWindowProc (hWnd, uMsg, wParam, lParam);
{
/* 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 0;