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
97776ce1
Commit
97776ce1
authored
Aug 13, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: corectly do the thumbnails for Win7 on Video
Ref #10154 Close #4726
parent
291b79a1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+1
-1
modules/gui/qt4/main_interface_win32.cpp
modules/gui/qt4/main_interface_win32.cpp
+16
-8
No files found.
modules/gui/qt4/main_interface.hpp
View file @
97776ce1
...
@@ -175,7 +175,7 @@ private:
...
@@ -175,7 +175,7 @@ private:
bool
b_statusbarVisible
;
bool
b_statusbarVisible
;
#ifdef _WIN32
#ifdef _WIN32
HWND
WinId
();
HWND
WinId
(
QWidget
*
);
HIMAGELIST
himl
;
HIMAGELIST
himl
;
ITaskbarList3
*
p_taskbl
;
ITaskbarList3
*
p_taskbl
;
UINT
taskbar_wmsg
;
UINT
taskbar_wmsg
;
...
...
modules/gui/qt4/main_interface_win32.cpp
View file @
97776ce1
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#include "input_manager.hpp"
#include "input_manager.hpp"
#include "actions_manager.hpp"
#include "actions_manager.hpp"
#include "dialogs_provider.hpp"
#include "dialogs_provider.hpp"
#include "components/interface_widgets.hpp"
#include <QBitmap>
#include <QBitmap>
#include <vlc_windows_interfaces.h>
#include <vlc_windows_interfaces.h>
...
@@ -78,13 +79,14 @@
...
@@ -78,13 +79,14 @@
#define GET_FLAGS_LPARAM(lParam) (LOWORD(lParam))
#define GET_FLAGS_LPARAM(lParam) (LOWORD(lParam))
#define GET_KEYSTATE_LPARAM(lParam) GET_FLAGS_LPARAM(lParam)
#define GET_KEYSTATE_LPARAM(lParam) GET_FLAGS_LPARAM(lParam)
HWND
MainInterface
::
WinId
()
HWND
MainInterface
::
WinId
(
QWidget
*
w
)
{
{
#if HAS_QT5
#if HAS_QT5
QWindow
*
window
=
windowHandle
();
if
(
w
&&
w
->
windowHandle
()
)
HWND
id
=
static_cast
<
HWND
>
(
QGuiApplication
::
platformNativeInterface
()
->
return
static_cast
<
HWND
>
(
QGuiApplication
::
platformNativeInterface
()
->
nativeResourceForWindow
(
"handle"
,
window
));
nativeResourceForWindow
(
"handle"
,
w
->
windowHandle
()));
return
id
;
else
return
0
;
#else
#else
return
winId
();
return
winId
();
#endif
#endif
...
@@ -168,12 +170,12 @@ void MainInterface::createTaskBarButtons()
...
@@ -168,12 +170,12 @@ void MainInterface::createTaskBarButtons()
thbButtons
[
2
].
iBitmap
=
3
;
thbButtons
[
2
].
iBitmap
=
3
;
thbButtons
[
2
].
dwFlags
=
THBF_HIDDEN
;
thbButtons
[
2
].
dwFlags
=
THBF_HIDDEN
;
HRESULT
hr
=
p_taskbl
->
ThumbBarSetImageList
(
WinId
(),
himl
);
HRESULT
hr
=
p_taskbl
->
ThumbBarSetImageList
(
WinId
(
this
),
himl
);
if
(
S_OK
!=
hr
)
if
(
S_OK
!=
hr
)
msg_Err
(
p_intf
,
"ThumbBarSetImageList failed with error %08lx"
,
hr
);
msg_Err
(
p_intf
,
"ThumbBarSetImageList failed with error %08lx"
,
hr
);
else
else
{
{
hr
=
p_taskbl
->
ThumbBarAddButtons
(
WinId
(),
3
,
thbButtons
);
hr
=
p_taskbl
->
ThumbBarAddButtons
(
WinId
(
this
),
3
,
thbButtons
);
if
(
S_OK
!=
hr
)
if
(
S_OK
!=
hr
)
msg_Err
(
p_intf
,
"ThumbBarAddButtons failed with error %08lx"
,
hr
);
msg_Err
(
p_intf
,
"ThumbBarAddButtons failed with error %08lx"
,
hr
);
}
}
...
@@ -333,7 +335,13 @@ void MainInterface::changeThumbbarButtons( int i_status )
...
@@ -333,7 +335,13 @@ void MainInterface::changeThumbbarButtons( int i_status )
default:
default:
return
;
return
;
}
}
HRESULT
hr
=
p_taskbl
->
ThumbBarUpdateButtons
(
WinId
(),
3
,
thbButtons
);
HRESULT
hr
;
if
(
videoWidget
&&
THEMIM
->
getIM
()
->
hasVideo
()
)
hr
=
p_taskbl
->
ThumbBarUpdateButtons
(
WinId
(
videoWidget
),
3
,
thbButtons
);
else
hr
=
p_taskbl
->
ThumbBarUpdateButtons
(
WinId
(
this
),
3
,
thbButtons
);
if
(
S_OK
!=
hr
)
if
(
S_OK
!=
hr
)
msg_Err
(
p_intf
,
"ThumbBarUpdateButtons failed with error %08lx"
,
hr
);
msg_Err
(
p_intf
,
"ThumbBarUpdateButtons failed with error %08lx"
,
hr
);
}
}
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