Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
94c1a67f
Commit
94c1a67f
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: Add helper for setting WS_EX_WINDOWEDGE flag.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3979f4a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
win.c
dlls/user32/win.c
+16
-14
No files found.
dlls/user32/win.c
View file @
94c1a67f
...
...
@@ -1462,6 +1462,20 @@ static void map_dpi_create_struct( CREATESTRUCTW *cs, UINT dpi_from, UINT dpi_to
}
/***********************************************************************
* fix_exstyle
*/
static
DWORD
fix_exstyle
(
DWORD
style
,
DWORD
exstyle
)
{
if
((
exstyle
&
WS_EX_DLGMODALFRAME
)
||
(
!
(
exstyle
&
WS_EX_STATICEDGE
)
&&
(
style
&
(
WS_DLGFRAME
|
WS_THICKFRAME
))))
exstyle
|=
WS_EX_WINDOWEDGE
;
else
exstyle
&=
~
WS_EX_WINDOWEDGE
;
return
exstyle
;
}
/***********************************************************************
* WIN_CreateWindowEx
*
* Implementation of CreateWindowEx().
...
...
@@ -1596,13 +1610,7 @@ HWND WIN_CreateWindowEx( CREATESTRUCTW *cs, LPCWSTR className, HINSTANCE module,
}
WIN_FixCoordinates
(
cs
,
&
sw
);
/* fix default coordinates */
if
((
cs
->
dwExStyle
&
WS_EX_DLGMODALFRAME
)
||
((
!
(
cs
->
dwExStyle
&
WS_EX_STATICEDGE
))
&&
(
cs
->
style
&
(
WS_DLGFRAME
|
WS_THICKFRAME
))))
cs
->
dwExStyle
|=
WS_EX_WINDOWEDGE
;
else
cs
->
dwExStyle
&=
~
WS_EX_WINDOWEDGE
;
cs
->
dwExStyle
=
fix_exstyle
(
cs
->
style
,
cs
->
dwExStyle
);
/* Create the window structure */
...
...
@@ -2622,13 +2630,7 @@ LONG_PTR WIN_SetWindowLong( HWND hwnd, INT offset, UINT size, LONG_PTR newval, B
if
(
!
(
wndPtr
=
WIN_GetPtr
(
hwnd
))
||
wndPtr
==
WND_OTHER_PROCESS
)
return
0
;
/* WS_EX_TOPMOST can only be changed through SetWindowPos */
newval
=
(
style
.
styleNew
&
~
WS_EX_TOPMOST
)
|
(
wndPtr
->
dwExStyle
&
WS_EX_TOPMOST
);
/* WS_EX_WINDOWEDGE depends on some other styles */
if
(
newval
&
WS_EX_DLGMODALFRAME
)
newval
|=
WS_EX_WINDOWEDGE
;
else
if
(
!
(
newval
&
WS_EX_STATICEDGE
)
&&
(
wndPtr
->
dwStyle
&
(
WS_DLGFRAME
|
WS_THICKFRAME
)))
newval
|=
WS_EX_WINDOWEDGE
;
else
newval
&=
~
WS_EX_WINDOWEDGE
;
newval
=
fix_exstyle
(
wndPtr
->
dwStyle
,
newval
);
break
;
case
GWLP_HWNDPARENT
:
if
(
wndPtr
->
parent
==
GetDesktopWindow
())
...
...
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