[vlc-devel] commit: skins(Win): add fullscreen controller as a child of fullscreen main window ( Erwan Tulou )
git version control
git at videolan.org
Mon Dec 28 22:21:42 CET 2009
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Mon Dec 28 22:02:46 2009 +0100| [d7cc8ec81478335c871841c621ddf3ed571a8beb] | committer: Erwan Tulou
skins(Win): add fullscreen controller as a child of fullscreen main window
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d7cc8ec81478335c871841c621ddf3ed571a8beb
---
modules/gui/skins2/win32/win32_window.cpp | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/modules/gui/skins2/win32/win32_window.cpp b/modules/gui/skins2/win32/win32_window.cpp
index b94ad9f..1104805 100644
--- a/modules/gui/skins2/win32/win32_window.cpp
+++ b/modules/gui/skins2/win32/win32_window.cpp
@@ -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 );
}
More information about the vlc-devel
mailing list