]> git.sesse.net Git - vlc/commitdiff
skins2(Win32): prepare for typified windows
authorErwan Tulou <erwan10@videolan.org>
Sat, 19 Dec 2009 18:30:23 +0000 (19:30 +0100)
committerErwan Tulou <erwan10@videolan.org>
Sat, 26 Dec 2009 22:19:57 +0000 (23:19 +0100)
modules/gui/skins2/win32/win32_factory.cpp
modules/gui/skins2/win32/win32_window.cpp
modules/gui/skins2/win32/win32_window.hpp

index e7bbf66952b11dc9873c403ed1b44ac65653e829..0a1cba57c250be05cc8380a6e61a06558411ca69 100644 (file)
@@ -326,7 +326,7 @@ OSWindow *Win32Factory::createOSWindow( GenericWindow &rWindow, bool dragDrop,
                                         GenericWindow::WindowType_t type )
 {
     return new Win32Window( getIntf(), rWindow, m_hInst, m_hParentWindow,
-                            dragDrop, playOnDrop, (Win32Window*)pParent );
+                            dragDrop, playOnDrop, (Win32Window*)pParent, type );
 }
 
 
index 7102f96b1bbc31af2fbf5f23254caa1a90591ed2..413168dc676729ca71998f8a981f10104bf42531 100644 (file)
 Win32Window::Win32Window( intf_thread_t *pIntf, GenericWindow &rWindow,
                           HINSTANCE hInst, HWND hParentWindow,
                           bool dragDrop, bool playOnDrop,
-                          Win32Window *pParentWindow ):
+                          Win32Window *pParentWindow,
+                          GenericWindow::WindowType_t type ):
     OSWindow( pIntf ), m_dragDrop( dragDrop ), m_isLayered( false ),
-    m_pParent( pParentWindow )
+    m_pParent( pParentWindow ), m_type ( type )
 {
     // Create the window
     if( pParentWindow )
index 0cad495a5c8254eeafa1c53a93928d5bf2760f38..6717cd7276e71d136540681284693121cc024708 100644 (file)
@@ -25,6 +25,7 @@
 #ifndef WIN32_WINDOW_HPP
 #define WIN32_WINDOW_HPP
 
+#include "../src/generic_window.hpp"
 #include "../src/os_window.hpp"
 #include <windows.h>
 #include <ole2.h>   // LPDROPTARGET
@@ -37,7 +38,7 @@ public:
     Win32Window( intf_thread_t *pIntf, GenericWindow &rWindow,
                  HINSTANCE hInst, HWND hParentWindow,
                  bool dragDrop, bool playOnDrop,
-                 Win32Window *pParentWindow );
+                 Win32Window *pParentWindow, GenericWindow::WindowType_t );
     virtual ~Win32Window();
 
     // Show the window
@@ -80,6 +81,9 @@ private:
     mutable bool m_isLayered;
     /// Parent window
     Win32Window *m_pParent;
+    /// window type
+    GenericWindow::WindowType_t m_type;
+
 };