Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3979f4a4
Commit
3979f4a4
authored
Oct 07, 2021
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Simplify CreateWindow condition for setting WS_EX_WINDOWEDGE style.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
08303d9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
win.c
dlls/user32/win.c
+2
-9
No files found.
dlls/user32/win.c
View file @
3979f4a4
...
@@ -1653,16 +1653,9 @@ HWND WIN_CreateWindowEx( CREATESTRUCTW *cs, LPCWSTR className, HINSTANCE module,
...
@@ -1653,16 +1653,9 @@ HWND WIN_CreateWindowEx( CREATESTRUCTW *cs, LPCWSTR className, HINSTANCE module,
}
}
/* WS_EX_WINDOWEDGE depends on some other styles */
/* WS_EX_WINDOWEDGE depends on some other styles */
if
(
wndPtr
->
dwExStyle
&
WS_EX_DLGMODALFRAME
)
if
((
wndPtr
->
dwStyle
&
(
WS_DLGFRAME
|
WS_THICKFRAME
))
&&
!
(
wndPtr
->
dwStyle
&
(
WS_CHILD
|
WS_POPUP
)))
wndPtr
->
dwExStyle
|=
WS_EX_WINDOWEDGE
;
wndPtr
->
dwExStyle
|=
WS_EX_WINDOWEDGE
;
else
if
(
wndPtr
->
dwStyle
&
(
WS_DLGFRAME
|
WS_THICKFRAME
))
{
if
(
!
((
wndPtr
->
dwExStyle
&
WS_EX_STATICEDGE
)
&&
(
wndPtr
->
dwStyle
&
(
WS_CHILD
|
WS_POPUP
))))
wndPtr
->
dwExStyle
|=
WS_EX_WINDOWEDGE
;
}
else
wndPtr
->
dwExStyle
&=
~
WS_EX_WINDOWEDGE
;
if
(
!
(
wndPtr
->
dwStyle
&
(
WS_CHILD
|
WS_POPUP
)))
if
(
!
(
wndPtr
->
dwStyle
&
(
WS_CHILD
|
WS_POPUP
)))
wndPtr
->
flags
|=
WIN_NEED_SIZE
;
wndPtr
->
flags
|=
WIN_NEED_SIZE
;
...
...
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