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
4d7892f8
Commit
4d7892f8
authored
Aug 30, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Aug 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TB_MARKITEM should redraw button.
parent
a8509028
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
toolbar.c
dlls/comctl32/toolbar.c
+10
-2
No files found.
dlls/comctl32/toolbar.c
View file @
4d7892f8
...
...
@@ -3986,6 +3986,8 @@ TOOLBAR_MarkButton (HWND hwnd, WPARAM wParam, LPARAM lParam)
{
TOOLBAR_INFO
*
infoPtr
=
TOOLBAR_GetInfoPtr
(
hwnd
);
INT
nIndex
;
DWORD
oldState
;
TBUTTON_INFO
*
btnPtr
;
TRACE
(
"hwnd = %p, wParam = %d, lParam = 0x%08lx
\n
"
,
hwnd
,
wParam
,
lParam
);
...
...
@@ -3993,10 +3995,16 @@ TOOLBAR_MarkButton (HWND hwnd, WPARAM wParam, LPARAM lParam)
if
(
nIndex
==
-
1
)
return
FALSE
;
btnPtr
=
&
infoPtr
->
buttons
[
nIndex
];
oldState
=
btnPtr
->
fsState
;
if
(
LOWORD
(
lParam
))
infoPtr
->
buttons
[
nIndex
].
fsState
|=
TBSTATE_MARKED
;
btnPtr
->
fsState
|=
TBSTATE_MARKED
;
else
infoPtr
->
buttons
[
nIndex
].
fsState
&=
~
TBSTATE_MARKED
;
btnPtr
->
fsState
&=
~
TBSTATE_MARKED
;
if
(
oldState
!=
btnPtr
->
fsState
)
InvalidateRect
(
hwnd
,
&
btnPtr
->
rect
,
TRUE
);
return
TRUE
;
}
...
...
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