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
46570a9d
Commit
46570a9d
authored
Aug 07, 1999
by
Thuy Nguyen
Committed by
Alexandre Julliard
Aug 07, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WS_EX_DLGMODALFRAME alone does not mean title bar, you still have to
specify WS_CAPTION.
parent
028e9a17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
nonclient.c
windows/nonclient.c
+9
-5
No files found.
windows/nonclient.c
View file @
46570a9d
...
...
@@ -98,8 +98,8 @@ BOOL WIN_WindowNeedsWMBorder( DWORD style, DWORD exStyle )
{
if
(
!
(
style
&
WS_CHILD
)
&&
Options
.
managed
&&
(((
style
&
WS_CAPTION
)
==
WS_CAPTION
)
||
(
style
&
WS_THICKFRAME
)
||
(
exStyle
&
WS_EX_DLGMODALFRAME
)))
return
TRUE
;
(
style
&
WS_THICKFRAME
)
))
return
TRUE
;
return
FALSE
;
}
...
...
@@ -861,9 +861,7 @@ NC_DoNCHitTest95 (WND *wndPtr, POINT16 pt )
if
(
!
PtInRect16
(
&
rect
,
pt
))
{
/* Check system menu */
if
((
wndPtr
->
dwStyle
&
WS_SYSMENU
)
&&
(((
HICON
)
GetClassLongA
(
wndPtr
->
hwndSelf
,
GCL_HICONSM
))
||
((
HICON
)
GetClassLongA
(
wndPtr
->
hwndSelf
,
GCL_HICON
))))
if
((
wndPtr
->
dwStyle
&
WS_SYSMENU
)
&&
(
!
(
wndPtr
->
dwStyle
&
DS_MODALFRAME
)))
rect
.
left
+=
GetSystemMetrics
(
SM_CYCAPTION
)
-
1
;
if
(
pt
.
x
<
rect
.
left
)
return
HTSYSMENU
;
...
...
@@ -1061,6 +1059,12 @@ NC_DrawSysButton95 (HWND hwnd, HDC hdc, BOOL down)
hIcon
=
(
HICON
)
GetClassLongA
(
wndPtr
->
hwndSelf
,
GCL_HICONSM
);
if
(
!
hIcon
)
hIcon
=
(
HICON
)
GetClassLongA
(
wndPtr
->
hwndSelf
,
GCL_HICON
);
/* If there is no hIcon specified or this is not a modal dialog, */
/* get the default one. */
if
(
hIcon
==
0
)
if
(
!
(
wndPtr
->
dwStyle
&
DS_MODALFRAME
))
hIcon
=
LoadImageA
(
0
,
MAKEINTRESOURCEA
(
OIC_WINEICON
),
IMAGE_ICON
,
0
,
0
,
LR_DEFAULTCOLOR
);
if
(
hIcon
)
DrawIconEx
(
hdc
,
rect
.
left
+
2
,
rect
.
top
+
2
,
hIcon
,
GetSystemMetrics
(
SM_CXSMICON
),
...
...
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