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
48e74289
Commit
48e74289
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: Remove direct access to items array.
parent
bfeaad0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tab.c
dlls/comctl32/tab.c
+4
-4
No files found.
dlls/comctl32/tab.c
View file @
48e74289
...
...
@@ -252,8 +252,8 @@ static inline LRESULT TAB_SetCurSel (TAB_INFO *infoPtr, INT iItem)
return
-
1
;
else
{
if
(
infoPtr
->
iSelected
!=
iItem
)
{
infoPtr
->
items
[
prevItem
].
dwState
&=
~
TCIS_BUTTONPRESSED
;
infoPtr
->
items
[
iItem
].
dwState
|=
TCIS_BUTTONPRESSED
;
TAB_GetItem
(
infoPtr
,
prevItem
)
->
dwState
&=
~
TCIS_BUTTONPRESSED
;
TAB_GetItem
(
infoPtr
,
iItem
)
->
dwState
|=
TCIS_BUTTONPRESSED
;
infoPtr
->
iSelected
=
iItem
;
infoPtr
->
uFocus
=
iItem
;
...
...
@@ -1956,7 +1956,7 @@ static void TAB_DrawItem(const TAB_INFO *infoPtr, HDC hdc, INT iItem)
}
else
/* ! selected */
{
DWORD
state
=
infoPtr
->
items
[
iItem
].
dwState
;
DWORD
state
=
TAB_GetItem
(
infoPtr
,
iItem
)
->
dwState
;
if
(
state
&
TCIS_BUTTONPRESSED
)
DrawEdge
(
hdc
,
&
r
,
EDGE_SUNKEN
,
BF_SOFT
|
BF_RECT
);
...
...
@@ -3113,7 +3113,7 @@ static LRESULT TAB_RemoveImage (TAB_INFO *infoPtr, INT image)
/* shift indices, repaint items if needed */
for
(
i
=
0
;
i
<
infoPtr
->
uNumItem
;
i
++
)
{
idx
=
&
infoPtr
->
items
[
i
].
iImage
;
idx
=
&
TAB_GetItem
(
infoPtr
,
i
)
->
iImage
;
if
(
*
idx
>=
image
)
{
if
(
*
idx
==
image
)
...
...
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