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
dab0c65f
Commit
dab0c65f
authored
Feb 20, 2008
by
Divan Burger
Committed by
Alexandre Julliard
Feb 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Correct the button sizes of the caption bar.
parent
de75fe0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
nonclient.c
dlls/user32/nonclient.c
+9
-9
No files found.
dlls/user32/nonclient.c
View file @
dab0c65f
...
...
@@ -611,19 +611,19 @@ static LRESULT NC_DoNCHitTest (WND *wndPtr, POINT pt )
/* Check close button */
if
(
wndPtr
->
dwStyle
&
WS_SYSMENU
)
rect
.
right
-=
GetSystemMetrics
(
SM_CYCAPTION
)
-
1
;
rect
.
right
-=
GetSystemMetrics
(
SM_CYCAPTION
);
if
(
pt
.
x
>
rect
.
right
)
return
HTCLOSE
;
/* Check maximize box */
/* In win95 there is automatically a Maximize button when there is a minimize one*/
if
(
min_or_max_box
&&
!
(
wndPtr
->
dwExStyle
&
WS_EX_TOOLWINDOW
))
rect
.
right
-=
GetSystemMetrics
(
SM_CXSIZE
)
+
1
;
rect
.
right
-=
GetSystemMetrics
(
SM_CXSIZE
);
if
(
pt
.
x
>
rect
.
right
)
return
HTMAXBUTTON
;
/* Check minimize box */
/* In win95 there is automatically a Maximize button when there is a Maximize one*/
if
(
min_or_max_box
&&
!
(
wndPtr
->
dwExStyle
&
WS_EX_TOOLWINDOW
))
rect
.
right
-=
GetSystemMetrics
(
SM_CXSIZE
)
+
1
;
rect
.
right
-=
GetSystemMetrics
(
SM_CXSIZE
);
if
(
pt
.
x
>
rect
.
right
)
return
HTMINBUTTON
;
return
HTCAPTION
;
...
...
@@ -742,8 +742,8 @@ static void NC_DrawCloseButton (HWND hwnd, HDC hdc, BOOL down, BOOL bGrayed)
}
else
{
rect
.
left
=
rect
.
right
-
GetSystemMetrics
(
SM_CXSIZE
)
-
1
;
rect
.
bottom
=
rect
.
top
+
GetSystemMetrics
(
SM_CYSIZE
)
-
1
;
rect
.
left
=
rect
.
right
-
GetSystemMetrics
(
SM_CXSIZE
);
rect
.
bottom
=
rect
.
top
+
GetSystemMetrics
(
SM_CYSIZE
)
-
2
;
rect
.
top
+=
2
;
rect
.
right
-=
2
;
}
...
...
@@ -772,9 +772,9 @@ static void NC_DrawMaxButton(HWND hwnd,HDC hdc,BOOL down, BOOL bGrayed)
NC_GetInsideRect
(
hwnd
,
&
rect
);
if
(
GetWindowLongW
(
hwnd
,
GWL_STYLE
)
&
WS_SYSMENU
)
rect
.
right
-=
GetSystemMetrics
(
SM_CXSIZE
)
+
1
;
rect
.
right
-=
GetSystemMetrics
(
SM_CXSIZE
);
rect
.
left
=
rect
.
right
-
GetSystemMetrics
(
SM_CXSIZE
);
rect
.
bottom
=
rect
.
top
+
GetSystemMetrics
(
SM_CYSIZE
)
-
1
;
rect
.
bottom
=
rect
.
top
+
GetSystemMetrics
(
SM_CYSIZE
)
-
2
;
rect
.
top
+=
2
;
rect
.
right
-=
2
;
if
(
down
)
flags
|=
DFCS_PUSHED
;
...
...
@@ -800,11 +800,11 @@ static void NC_DrawMinButton(HWND hwnd,HDC hdc,BOOL down, BOOL bGrayed)
NC_GetInsideRect
(
hwnd
,
&
rect
);
if
(
style
&
WS_SYSMENU
)
rect
.
right
-=
GetSystemMetrics
(
SM_CXSIZE
)
+
1
;
rect
.
right
-=
GetSystemMetrics
(
SM_CXSIZE
);
if
(
style
&
(
WS_MAXIMIZEBOX
|
WS_MINIMIZEBOX
))
rect
.
right
-=
GetSystemMetrics
(
SM_CXSIZE
)
-
2
;
rect
.
left
=
rect
.
right
-
GetSystemMetrics
(
SM_CXSIZE
);
rect
.
bottom
=
rect
.
top
+
GetSystemMetrics
(
SM_CYSIZE
)
-
1
;
rect
.
bottom
=
rect
.
top
+
GetSystemMetrics
(
SM_CYSIZE
)
-
2
;
rect
.
top
+=
2
;
rect
.
right
-=
2
;
if
(
down
)
flags
|=
DFCS_PUSHED
;
...
...
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