Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
9e1a485c
Commit
9e1a485c
authored
Jan 29, 2010
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins2(Win32): GetWindowLongPtr everywhere
parent
7caeab6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
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
+2
-2
No files found.
modules/gui/skins2/win32/win32_factory.cpp
View file @
9e1a485c
...
...
@@ -190,7 +190,7 @@ bool Win32Factory::init()
// We do it this way otherwise CreateWindowEx will fail
// if WS_EX_LAYERED is not supported
SetWindowLongPtr
(
m_hParentWindow
,
GWL_EXSTYLE
,
GetWindowLong
(
m_hParentWindow
,
GWL_EXSTYLE
)
|
GetWindowLong
Ptr
(
m_hParentWindow
,
GWL_EXSTYLE
)
|
WS_EX_LAYERED
);
ShowWindow
(
m_hParentWindow
,
SW_SHOW
);
...
...
modules/gui/skins2/win32/win32_window.cpp
View file @
9e1a485c
...
...
@@ -178,7 +178,7 @@ void Win32Window::setOpacity( uint8_t value ) const
if
(
m_isLayered
)
{
SetWindowLongPtr
(
m_hWnd
,
GWL_EXSTYLE
,
GetWindowLong
(
m_hWnd
,
GWL_EXSTYLE
)
&
~
WS_EX_LAYERED
);
GetWindowLong
Ptr
(
m_hWnd
,
GWL_EXSTYLE
)
&
~
WS_EX_LAYERED
);
// Redraw the window, otherwise we may end up with a grey rectangle
// for some strange reason
...
...
@@ -197,7 +197,7 @@ void Win32Window::setOpacity( uint8_t value ) const
// (Re)Add the WS_EX_LAYERED attribute.
// Resizing will be very slow, now :)
SetWindowLongPtr
(
m_hWnd
,
GWL_EXSTYLE
,
GetWindowLong
(
m_hWnd
,
GWL_EXSTYLE
)
|
WS_EX_LAYERED
);
GetWindowLong
Ptr
(
m_hWnd
,
GWL_EXSTYLE
)
|
WS_EX_LAYERED
);
// Redraw the window, otherwise we may end up with a grey
// rectangle for some strange reason
...
...
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