Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
02e2368f
Commit
02e2368f
authored
Mar 14, 2004
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* skins2/win32/*: Embedded vout works on Windows too. It still
segfaults when the mouse is moved above the video...
parent
8c9cd3a2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
7 deletions
+27
-7
modules/gui/skins2/win32/win32_factory.cpp
modules/gui/skins2/win32/win32_factory.cpp
+1
-1
modules/gui/skins2/win32/win32_window.cpp
modules/gui/skins2/win32/win32_window.cpp
+24
-5
modules/gui/skins2/win32/win32_window.hpp
modules/gui/skins2/win32/win32_window.hpp
+2
-1
No files found.
modules/gui/skins2/win32/win32_factory.cpp
View file @
02e2368f
...
...
@@ -223,7 +223,7 @@ OSWindow *Win32Factory::createOSWindow( GenericWindow &rWindow, bool dragDrop,
bool
playOnDrop
,
OSWindow
*
pParent
)
{
return
new
Win32Window
(
getIntf
(),
rWindow
,
m_hInst
,
m_hParentWindow
,
dragDrop
,
playOnDrop
);
dragDrop
,
playOnDrop
,
(
Win32Window
*
)
pParent
);
}
...
...
modules/gui/skins2/win32/win32_window.cpp
View file @
02e2368f
...
...
@@ -37,14 +37,26 @@
Win32Window
::
Win32Window
(
intf_thread_t
*
pIntf
,
GenericWindow
&
rWindow
,
HINSTANCE
hInst
,
HWND
hParentWindow
,
bool
dragDrop
,
bool
playOnDrop
)
:
bool
dragDrop
,
bool
playOnDrop
,
Win32Window
*
pParentWindow
)
:
OSWindow
(
pIntf
),
m_dragDrop
(
dragDrop
),
m_mm
(
false
)
{
// Create the window
m_hWnd
=
CreateWindowEx
(
WS_EX_TOOLWINDOW
,
"SkinWindowClass"
,
"default name"
,
WS_POPUP
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
hParentWindow
,
0
,
hInst
,
NULL
);
if
(
pParentWindow
)
{
// Child window (for vout)
HWND
hParent
=
pParentWindow
->
getHandle
();
m_hWnd
=
CreateWindowEx
(
WS_EX_TOOLWINDOW
,
"SkinWindowClass"
,
"default name"
,
WS_CHILD
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
hParent
,
0
,
hInst
,
NULL
);
}
else
{
// Normal window
m_hWnd
=
CreateWindowEx
(
WS_EX_TOOLWINDOW
,
"SkinWindowClass"
,
"default name"
,
WS_POPUP
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
hParentWindow
,
0
,
hInst
,
NULL
);
}
if
(
!
m_hWnd
)
{
...
...
@@ -69,6 +81,13 @@ Win32Window::Win32Window( intf_thread_t *pIntf, GenericWindow &rWindow,
// Register the window as a drop target
RegisterDragDrop
(
m_hWnd
,
m_pDropTarget
);
}
// XXX: Kludge to tell VLC that this window is the vout
if
(
pParentWindow
)
{
vlc_value_t
value
;
value
.
i_int
=
(
int
)
(
ptrdiff_t
)
(
void
*
)
m_hWnd
;
var_Set
(
getIntf
()
->
p_vlc
,
"drawable"
,
value
);
}
}
...
...
modules/gui/skins2/win32/win32_window.hpp
View file @
02e2368f
...
...
@@ -36,7 +36,8 @@ class Win32Window: public OSWindow
public:
Win32Window
(
intf_thread_t
*
pIntf
,
GenericWindow
&
rWindow
,
HINSTANCE
hInst
,
HWND
hParentWindow
,
bool
dragDrop
,
bool
playOnDrop
);
bool
dragDrop
,
bool
playOnDrop
,
Win32Window
*
pParentWindow
);
virtual
~
Win32Window
();
// Show the window
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment