From 0eb1ccb735c3df5ca5bda3f0c64099bd8ac186f0 Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Fri, 26 Aug 2011 05:51:13 +0000 Subject: Re #1327 (vidgui): Minor fix on windows VidWin::attach(), applying window style WS_CHILD to unattached/unparented SDL window causes strange behavior: after parented to a QWidget, it doesn't follow the parent/QWidget movement but its coordinate is relative to the parent/QWidget. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3727 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip-apps/src/vidgui/vidwin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pjsip-apps/src') diff --git a/pjsip-apps/src/vidgui/vidwin.cpp b/pjsip-apps/src/vidgui/vidwin.cpp index fd941415..1148a020 100644 --- a/pjsip-apps/src/vidgui/vidwin.cpp +++ b/pjsip-apps/src/vidgui/vidwin.cpp @@ -102,7 +102,7 @@ void VidWin::attach() HWND new_parent = (HWND)winId(); orig_parent = GetParent(w); - SetWindowLong(w, GWL_STYLE, WS_CHILD); + //SetWindowLong(w, GWL_STYLE, WS_CHILD); SetParent(w, new_parent); TRACE_("%p new parent handle = %p", w, new_parent); } -- cgit v1.2.3