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
e2b1604f
Commit
e2b1604f
authored
Mar 28, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tab: Implemented TCM_DESELECTALL.
parent
48e74289
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
5 deletions
+34
-5
tab.c
dlls/comctl32/tab.c
+34
-5
No files found.
dlls/comctl32/tab.c
View file @
e2b1604f
...
...
@@ -51,9 +51,6 @@
* TCN_GETOBJECT
* TCN_KEYDOWN
*
* Messages:
* TCM_DESELECTALL
*
* Macros:
* TabCtrl_AdjustRect
*
...
...
@@ -3164,6 +3161,39 @@ TAB_GetExtendedStyle (TAB_INFO *infoPtr)
return
infoPtr
->
exStyle
;
}
static
LRESULT
TAB_DeselectAll
(
TAB_INFO
*
infoPtr
,
BOOL
excludesel
)
{
LONG
style
=
GetWindowLongW
(
infoPtr
->
hwnd
,
GWL_STYLE
);
BOOL
paint
=
FALSE
;
INT
i
,
selected
=
infoPtr
->
iSelected
;
if
(
!
(
style
&
TCS_BUTTONS
))
return
0
;
for
(
i
=
0
;
i
<
infoPtr
->
uNumItem
;
i
++
)
{
if
((
TAB_GetItem
(
infoPtr
,
i
)
->
dwState
&
TCIS_BUTTONPRESSED
)
&&
(
selected
!=
i
))
{
TAB_GetItem
(
infoPtr
,
i
)
->
dwState
&=
~
TCIS_BUTTONPRESSED
;
paint
=
TRUE
;
}
}
if
(
!
excludesel
&&
(
selected
!=
-
1
))
{
TAB_GetItem
(
infoPtr
,
selected
)
->
dwState
&=
~
TCIS_BUTTONPRESSED
;
infoPtr
->
iSelected
=
-
1
;
paint
=
TRUE
;
}
if
(
paint
)
TAB_InvalidateTabArea
(
infoPtr
);
return
0
;
}
static
LRESULT
WINAPI
TAB_WindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
...
...
@@ -3257,8 +3287,7 @@ TAB_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TAB_SetMinTabWidth
(
infoPtr
,
(
INT
)
lParam
);
case
TCM_DESELECTALL
:
FIXME
(
"Unimplemented msg TCM_DESELECTALL
\n
"
);
return
0
;
return
TAB_DeselectAll
(
infoPtr
,
(
BOOL
)
wParam
);
case
TCM_GETEXTENDEDSTYLE
:
return
TAB_GetExtendedStyle
(
infoPtr
);
...
...
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