]> git.sesse.net Git - vlc/commitdiff
skins(Win): add fullscreen controller as a child of fullscreen main window
authorErwan Tulou <erwan10@videolan.org>
Mon, 28 Dec 2009 21:02:46 +0000 (22:02 +0100)
committerErwan Tulou <erwan10@videolan.org>
Mon, 28 Dec 2009 21:20:41 +0000 (22:20 +0100)
modules/gui/skins2/win32/win32_window.cpp

index b94ad9f2862fed807873ab6a15c2c699e4b6b1f0..1104805ee6ad711103078d685c5a117d5001b012 100644 (file)
@@ -125,6 +125,13 @@ Win32Window::~Win32Window()
 void Win32Window::reparent( void* OSHandle, int x, int y, int w, int h )
 {
     // Reparent the window
+
+    if( m_type == GenericWindow::TopWindow )
+    {
+       // fullscreen controller
+       SetWindowLongPtr( m_hWnd, GWL_STYLE, WS_CHILD );
+    }
+
     SetParent( m_hWnd, (HWND)OSHandle );
     MoveWindow( m_hWnd, x, y, w, h, true );
 }