Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
951b0a22
Commit
951b0a22
authored
Feb 11, 2004
by
Huw Davies
Committed by
Alexandre Julliard
Feb 11, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only redraw button in PressButton and Indeterminate if its state has
changed.
parent
9591679b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
toolbar.c
dlls/comctl32/toolbar.c
+8
-2
No files found.
dlls/comctl32/toolbar.c
View file @
951b0a22
...
@@ -3551,18 +3551,21 @@ TOOLBAR_Indeterminate (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -3551,18 +3551,21 @@ TOOLBAR_Indeterminate (HWND hwnd, WPARAM wParam, LPARAM lParam)
TOOLBAR_INFO
*
infoPtr
=
TOOLBAR_GetInfoPtr
(
hwnd
);
TOOLBAR_INFO
*
infoPtr
=
TOOLBAR_GetInfoPtr
(
hwnd
);
TBUTTON_INFO
*
btnPtr
;
TBUTTON_INFO
*
btnPtr
;
INT
nIndex
;
INT
nIndex
;
DWORD
oldState
;
nIndex
=
TOOLBAR_GetButtonIndex
(
infoPtr
,
(
INT
)
wParam
,
FALSE
);
nIndex
=
TOOLBAR_GetButtonIndex
(
infoPtr
,
(
INT
)
wParam
,
FALSE
);
if
(
nIndex
==
-
1
)
if
(
nIndex
==
-
1
)
return
FALSE
;
return
FALSE
;
btnPtr
=
&
infoPtr
->
buttons
[
nIndex
];
btnPtr
=
&
infoPtr
->
buttons
[
nIndex
];
oldState
=
btnPtr
->
fsState
;
if
(
LOWORD
(
lParam
)
==
FALSE
)
if
(
LOWORD
(
lParam
)
==
FALSE
)
btnPtr
->
fsState
&=
~
TBSTATE_INDETERMINATE
;
btnPtr
->
fsState
&=
~
TBSTATE_INDETERMINATE
;
else
else
btnPtr
->
fsState
|=
TBSTATE_INDETERMINATE
;
btnPtr
->
fsState
|=
TBSTATE_INDETERMINATE
;
InvalidateRect
(
hwnd
,
&
btnPtr
->
rect
,
TOOLBAR_HasText
(
infoPtr
,
btnPtr
));
if
(
oldState
!=
btnPtr
->
fsState
)
InvalidateRect
(
hwnd
,
&
btnPtr
->
rect
,
TOOLBAR_HasText
(
infoPtr
,
btnPtr
));
return
TRUE
;
return
TRUE
;
}
}
...
@@ -3867,18 +3870,21 @@ TOOLBAR_PressButton (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -3867,18 +3870,21 @@ TOOLBAR_PressButton (HWND hwnd, WPARAM wParam, LPARAM lParam)
TOOLBAR_INFO
*
infoPtr
=
TOOLBAR_GetInfoPtr
(
hwnd
);
TOOLBAR_INFO
*
infoPtr
=
TOOLBAR_GetInfoPtr
(
hwnd
);
TBUTTON_INFO
*
btnPtr
;
TBUTTON_INFO
*
btnPtr
;
INT
nIndex
;
INT
nIndex
;
DWORD
oldState
;
nIndex
=
TOOLBAR_GetButtonIndex
(
infoPtr
,
(
INT
)
wParam
,
FALSE
);
nIndex
=
TOOLBAR_GetButtonIndex
(
infoPtr
,
(
INT
)
wParam
,
FALSE
);
if
(
nIndex
==
-
1
)
if
(
nIndex
==
-
1
)
return
FALSE
;
return
FALSE
;
btnPtr
=
&
infoPtr
->
buttons
[
nIndex
];
btnPtr
=
&
infoPtr
->
buttons
[
nIndex
];
oldState
=
btnPtr
->
fsState
;
if
(
LOWORD
(
lParam
)
==
FALSE
)
if
(
LOWORD
(
lParam
)
==
FALSE
)
btnPtr
->
fsState
&=
~
TBSTATE_PRESSED
;
btnPtr
->
fsState
&=
~
TBSTATE_PRESSED
;
else
else
btnPtr
->
fsState
|=
TBSTATE_PRESSED
;
btnPtr
->
fsState
|=
TBSTATE_PRESSED
;
InvalidateRect
(
hwnd
,
&
btnPtr
->
rect
,
TOOLBAR_HasText
(
infoPtr
,
btnPtr
));
if
(
oldState
!=
btnPtr
->
fsState
)
InvalidateRect
(
hwnd
,
&
btnPtr
->
rect
,
TOOLBAR_HasText
(
infoPtr
,
btnPtr
));
return
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