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
8d43bdd2
Commit
8d43bdd2
authored
Nov 26, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Remove parameter check from winproc for LVM_SETITEMPOSITION32.
parent
62c610df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
listview.c
dlls/comctl32/listview.c
+14
-14
No files found.
dlls/comctl32/listview.c
View file @
8d43bdd2
...
@@ -8489,34 +8489,35 @@ static BOOL LISTVIEW_SetItemCount(LISTVIEW_INFO *infoPtr, INT nItems, DWORD dwFl
...
@@ -8489,34 +8489,35 @@ static BOOL LISTVIEW_SetItemCount(LISTVIEW_INFO *infoPtr, INT nItems, DWORD dwFl
* SUCCESS : TRUE
* SUCCESS : TRUE
* FAILURE : FALSE
* FAILURE : FALSE
*/
*/
static
BOOL
LISTVIEW_SetItemPosition
(
LISTVIEW_INFO
*
infoPtr
,
INT
nItem
,
POINT
pt
)
static
BOOL
LISTVIEW_SetItemPosition
(
LISTVIEW_INFO
*
infoPtr
,
INT
nItem
,
POINT
*
pt
)
{
{
POINT
Origin
;
POINT
Origin
,
Pt
;
TRACE
(
"(nItem=%d,
&pt=%s
\n
"
,
nItem
,
wine_dbgstr_point
(
&
pt
));
TRACE
(
"(nItem=%d,
pt=%s
\n
"
,
nItem
,
wine_dbgstr_point
(
pt
));
if
(
nItem
<
0
||
nItem
>=
infoPtr
->
nItemCount
||
if
(
!
pt
||
nItem
<
0
||
nItem
>=
infoPtr
->
nItemCount
||
!
(
infoPtr
->
uView
==
LV_VIEW_ICON
||
infoPtr
->
uView
==
LV_VIEW_SMALLICON
))
return
FALSE
;
!
(
infoPtr
->
uView
==
LV_VIEW_ICON
||
infoPtr
->
uView
==
LV_VIEW_SMALLICON
))
return
FALSE
;
Pt
=
*
pt
;
LISTVIEW_GetOrigin
(
infoPtr
,
&
Origin
);
LISTVIEW_GetOrigin
(
infoPtr
,
&
Origin
);
/* This point value seems to be an undocumented feature.
/* This point value seems to be an undocumented feature.
* The best guess is that it means either at the origin,
* The best guess is that it means either at the origin,
* or at true beginning of the list. I will assume the origin. */
* or at true beginning of the list. I will assume the origin. */
if
((
pt
.
x
==
-
1
)
&&
(
p
t
.
y
==
-
1
))
if
((
Pt
.
x
==
-
1
)
&&
(
P
t
.
y
==
-
1
))
p
t
=
Origin
;
P
t
=
Origin
;
if
(
infoPtr
->
uView
==
LV_VIEW_ICON
)
if
(
infoPtr
->
uView
==
LV_VIEW_ICON
)
{
{
p
t
.
x
-=
(
infoPtr
->
nItemWidth
-
infoPtr
->
iconSize
.
cx
)
/
2
;
P
t
.
x
-=
(
infoPtr
->
nItemWidth
-
infoPtr
->
iconSize
.
cx
)
/
2
;
p
t
.
y
-=
ICON_TOP_PADDING
;
P
t
.
y
-=
ICON_TOP_PADDING
;
}
}
p
t
.
x
-=
Origin
.
x
;
P
t
.
x
-=
Origin
.
x
;
p
t
.
y
-=
Origin
.
y
;
P
t
.
y
-=
Origin
.
y
;
infoPtr
->
bAutoarrange
=
FALSE
;
infoPtr
->
bAutoarrange
=
FALSE
;
return
LISTVIEW_MoveIconTo
(
infoPtr
,
nItem
,
&
p
t
,
FALSE
);
return
LISTVIEW_MoveIconTo
(
infoPtr
,
nItem
,
&
P
t
,
FALSE
);
}
}
/***
/***
...
@@ -11124,12 +11125,11 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
...
@@ -11124,12 +11125,11 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
POINT
pt
;
POINT
pt
;
pt
.
x
=
(
short
)
LOWORD
(
lParam
);
pt
.
x
=
(
short
)
LOWORD
(
lParam
);
pt
.
y
=
(
short
)
HIWORD
(
lParam
);
pt
.
y
=
(
short
)
HIWORD
(
lParam
);
return
LISTVIEW_SetItemPosition
(
infoPtr
,
(
INT
)
wParam
,
pt
);
return
LISTVIEW_SetItemPosition
(
infoPtr
,
(
INT
)
wParam
,
&
pt
);
}
}
case
LVM_SETITEMPOSITION32
:
case
LVM_SETITEMPOSITION32
:
if
(
lParam
==
0
)
return
FALSE
;
return
LISTVIEW_SetItemPosition
(
infoPtr
,
(
INT
)
wParam
,
(
POINT
*
)
lParam
);
return
LISTVIEW_SetItemPosition
(
infoPtr
,
(
INT
)
wParam
,
*
((
POINT
*
)
lParam
));
case
LVM_SETITEMSTATE
:
case
LVM_SETITEMSTATE
:
if
(
lParam
==
0
)
return
FALSE
;
if
(
lParam
==
0
)
return
FALSE
;
...
...
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