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
ecaa525a
Commit
ecaa525a
authored
Mar 19, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Mar 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Get rid of some incorrect casts.
parent
506fe445
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
listview.c
dlls/comctl32/listview.c
+3
-3
No files found.
dlls/comctl32/listview.c
View file @
ecaa525a
...
...
@@ -6740,7 +6740,7 @@ static BOOL LISTVIEW_SetColumnWidth(LISTVIEW_INFO *infoPtr, INT nColumn, INT cx)
hdi
.
mask
=
HDI_TEXT
;
hdi
.
cchTextMax
=
DISP_TEXT_SIZE
;
hdi
.
pszText
=
szDispText
;
if
(
Header_GetItemW
(
infoPtr
->
hwndHeader
,
nColumn
,
(
LPARAM
)
&
hdi
))
if
(
Header_GetItemW
(
infoPtr
->
hwndHeader
,
nColumn
,
&
hdi
))
{
HDC
hdc
=
GetDC
(
infoPtr
->
hwndSelf
);
HFONT
old_font
=
SelectObject
(
hdc
,
(
HFONT
)
SendMessageW
(
infoPtr
->
hwndHeader
,
WM_GETFONT
,
0
,
0
));
...
...
@@ -6762,7 +6762,7 @@ static BOOL LISTVIEW_SetColumnWidth(LISTVIEW_INFO *infoPtr, INT nColumn, INT cx)
hdi
.
mask
=
HDI_WIDTH
;
hdi
.
cxy
=
cx
;
TRACE
(
"hdi.cxy=%d
\n
"
,
hdi
.
cxy
);
return
Header_SetItemW
(
infoPtr
->
hwndHeader
,
nColumn
,
(
LPARAM
)
&
hdi
);
return
Header_SetItemW
(
infoPtr
->
hwndHeader
,
nColumn
,
&
hdi
);
}
/***
...
...
@@ -8385,7 +8385,7 @@ static LRESULT LISTVIEW_HeaderNotification(LISTVIEW_INFO *infoPtr, const NMHEADE
HDITEMW
hdi
;
hdi
.
mask
=
HDI_WIDTH
;
if
(
!
Header_GetItemW
(
infoPtr
->
hwndHeader
,
lpnmh
->
iItem
,
(
LPARAM
)
&
hdi
))
return
0
;
if
(
!
Header_GetItemW
(
infoPtr
->
hwndHeader
,
lpnmh
->
iItem
,
&
hdi
))
return
0
;
cxy
=
hdi
.
cxy
;
}
else
...
...
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