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
66eedb5a
Commit
66eedb5a
authored
Feb 20, 2001
by
Eric Kohl
Committed by
Alexandre Julliard
Feb 20, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed behaviour of dropdown buttons. When a dropdown button is
clicked, it does not change into pressed state.
parent
651332ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
toolbar.c
dlls/comctl32/toolbar.c
+15
-11
No files found.
dlls/comctl32/toolbar.c
View file @
66eedb5a
...
...
@@ -3787,23 +3787,18 @@ TOOLBAR_LButtonDown (HWND hwnd, WPARAM wParam, LPARAM lParam)
if
(
!
(
btnPtr
->
fsState
&
TBSTATE_ENABLED
))
return
0
;
SetCapture
(
hwnd
);
infoPtr
->
bCaptured
=
TRUE
;
infoPtr
->
nButtonDown
=
nHit
;
infoPtr
->
nOldHit
=
nHit
;
btnPtr
->
fsState
|=
TBSTATE_PRESSED
;
btnPtr
->
bHot
=
FALSE
;
CopyRect
(
&
arrowRect
,
&
btnPtr
->
rect
);
arrowRect
.
left
=
max
(
btnPtr
->
rect
.
left
,
btnPtr
->
rect
.
right
-
DDARROW_WIDTH
);
/* for EX_DRAWDDARROWS style, click must be in the drop-down arrow rect */
if
((
btnPtr
->
fsStyle
&
TBSTYLE_DROPDOWN
)
&&
!
(
TOOLBAR_HasDropDownArrows
(
infoPtr
->
dwExStyle
)
&&
!
PtInRect
(
&
arrowRect
,
pt
)))
((
TOOLBAR_HasDropDownArrows
(
infoPtr
->
dwExStyle
)
&&
PtInRect
(
&
arrowRect
,
pt
))
||
(
!
TOOLBAR_HasDropDownArrows
(
infoPtr
->
dwExStyle
))))
{
NMTOOLBARA
nmtb
;
/*
/*
* this time we must force a Redraw, so the btn is
* painted down before CaptureChanged repaints it up
*/
...
...
@@ -3819,8 +3814,17 @@ TOOLBAR_LButtonDown (HWND hwnd, WPARAM wParam, LPARAM lParam)
(
WPARAM
)
nmtb
.
hdr
.
idFrom
,
(
LPARAM
)
&
nmtb
);
}
else
InvalidateRect
(
hwnd
,
&
btnPtr
->
rect
,
TOOLBAR_HasText
(
infoPtr
,
btnPtr
));
{
SetCapture
(
hwnd
);
infoPtr
->
bCaptured
=
TRUE
;
infoPtr
->
nButtonDown
=
nHit
;
btnPtr
->
fsState
|=
TBSTATE_PRESSED
;
btnPtr
->
bHot
=
FALSE
;
InvalidateRect
(
hwnd
,
&
btnPtr
->
rect
,
TOOLBAR_HasText
(
infoPtr
,
btnPtr
));
}
}
return
0
;
...
...
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