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
63ba91dc
Commit
63ba91dc
authored
Oct 15, 2000
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed behaviour of window's system buttons.
parent
e8b3afc2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
9 deletions
+30
-9
nonclient.c
windows/nonclient.c
+30
-9
No files found.
windows/nonclient.c
View file @
63ba91dc
...
...
@@ -2458,17 +2458,24 @@ static void NC_TrackMinMaxBox95( HWND hwnd, WORD wParam )
(
*
paintButton
)(
hwnd
,
hdc
,
TRUE
,
FALSE
);
do
while
(
1
)
{
BOOL
oldstate
=
pressed
;
MSG_InternalGetMessage
(
QMSG_WIN32A
,
&
msg
,
0
,
0
,
0
,
PM_REMOVE
,
FALSE
,
NULL
);
if
(
msg
.
message
==
WM_LBUTTONUP
)
break
;
if
(
msg
.
message
!=
WM_MOUSEMOVE
)
continue
;
pressed
=
(
NC_HandleNCHitTest
(
hwnd
,
msg
.
pt
)
==
wParam
);
if
(
pressed
!=
oldstate
)
(
*
paintButton
)(
hwnd
,
hdc
,
pressed
,
FALSE
);
}
while
(
msg
.
message
!=
WM_LBUTTONUP
);
}
(
*
paintButton
)(
hwnd
,
hdc
,
FALSE
,
FALSE
);
if
(
pressed
)
(
*
paintButton
)(
hwnd
,
hdc
,
FALSE
,
FALSE
);
ReleaseCapture
();
ReleaseDC
(
hwnd
,
hdc
);
...
...
@@ -2506,17 +2513,24 @@ static void NC_TrackMinMaxBox( HWND hwnd, WORD wParam )
(
*
paintButton
)(
hwnd
,
hdc
,
TRUE
);
do
while
(
1
)
{
BOOL
oldstate
=
pressed
;
MSG_InternalGetMessage
(
QMSG_WIN32A
,
&
msg
,
0
,
0
,
0
,
PM_REMOVE
,
FALSE
,
NULL
);
if
(
msg
.
message
==
WM_LBUTTONUP
)
break
;
if
(
msg
.
message
!=
WM_MOUSEMOVE
)
continue
;
pressed
=
(
NC_HandleNCHitTest
(
hwnd
,
msg
.
pt
)
==
wParam
);
if
(
pressed
!=
oldstate
)
(
*
paintButton
)(
hwnd
,
hdc
,
pressed
);
}
while
(
msg
.
message
!=
WM_LBUTTONUP
);
}
(
*
paintButton
)(
hwnd
,
hdc
,
FALSE
);
if
(
pressed
)
(
*
paintButton
)(
hwnd
,
hdc
,
FALSE
);
ReleaseCapture
();
ReleaseDC
(
hwnd
,
hdc
);
...
...
@@ -2560,17 +2574,24 @@ NC_TrackCloseButton95 (HWND hwnd, WORD wParam)
NC_DrawCloseButton95
(
hwnd
,
hdc
,
TRUE
,
FALSE
);
do
while
(
1
)
{
BOOL
oldstate
=
pressed
;
MSG_InternalGetMessage
(
QMSG_WIN32A
,
&
msg
,
0
,
0
,
0
,
PM_REMOVE
,
FALSE
,
NULL
);
if
(
msg
.
message
==
WM_LBUTTONUP
)
break
;
if
(
msg
.
message
!=
WM_MOUSEMOVE
)
continue
;
pressed
=
(
NC_HandleNCHitTest
(
hwnd
,
msg
.
pt
)
==
wParam
);
if
(
pressed
!=
oldstate
)
NC_DrawCloseButton95
(
hwnd
,
hdc
,
pressed
,
FALSE
);
}
while
(
msg
.
message
!=
WM_LBUTTONUP
);
}
NC_DrawCloseButton95
(
hwnd
,
hdc
,
FALSE
,
FALSE
);
if
(
pressed
)
NC_DrawCloseButton95
(
hwnd
,
hdc
,
FALSE
,
FALSE
);
ReleaseCapture
();
ReleaseDC
(
hwnd
,
hdc
);
...
...
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