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
13a30bac
Commit
13a30bac
authored
Jun 22, 1999
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 22, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Thou shalt not use C++ comments.
parent
09f03b41
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
16 deletions
+18
-16
listview.c
dlls/comctl32/listview.c
+12
-11
treeview.c
dlls/comctl32/treeview.c
+3
-2
typelib.c
ole/typelib.c
+3
-3
No files found.
dlls/comctl32/listview.c
View file @
13a30bac
...
...
@@ -4770,31 +4770,32 @@ static LRESULT LISTVIEW_SetColumnWidth(HWND hwnd, INT iCol, INT cx)
LRESULT
lret
;
LONG
lStyle
;
/
/ set column width only if in report mode
/
* set column width only if in report mode */
lStyle
=
GetWindowLongA
(
hwnd
,
GWL_STYLE
);
if
((
lStyle
&
LVS_TYPEMASK
)
!=
LVS_REPORT
)
return
(
FALSE
);
/
/ make sure we can get the listview info
/
* make sure we can get the listview info */
if
(
!
(
infoPtr
=
(
LISTVIEW_INFO
*
)
GetWindowLongA
(
hwnd
,
0
)))
return
(
FALSE
);
if
(
!
infoPtr
->
hwndHeader
)
/
/ make sure we have a header
if
(
!
infoPtr
->
hwndHeader
)
/
* make sure we have a header */
return
(
FALSE
);
// FIXME: currently ignoring LVSCW_AUTOSIZE (-1) and
// LVSCV_AUTOSIZE_USEHEADER (-2)
/* FIXME: currently ignoring LVSCW_AUTOSIZE (-1) and
* LVSCV_AUTOSIZE_USEHEADER (-2)
*/
if
(
cx
<
0
)
return
(
FALSE
);
hdi
.
mask
=
HDI_WIDTH
;
hdi
.
cxy
=
cx
;
/
/ call header to update the column change
/
* call header to update the column change */
lret
=
Header_SetItemA
(
infoPtr
->
hwndHeader
,
(
WPARAM
)
iCol
,
(
LPARAM
)
&
hdi
);
infoPtr
->
nItemWidth
=
LISTVIEW_GetItemWidth
(
hwnd
);
InvalidateRect
(
hwnd
,
NULL
,
TRUE
);
/
/ force redraw of the listview
InvalidateRect
(
hwnd
,
NULL
,
TRUE
);
/
* force redraw of the listview */
return
lret
;
}
...
...
@@ -5122,7 +5123,7 @@ static LRESULT LISTVIEW_SortItems(HWND hwnd, WPARAM wParam, LPARAM lParam)
return
FALSE
;
nCount
=
GETITEMCOUNT
(
infoPtr
);
/
/ if there are 0 or 1 items, there is no need to sort
/
* if there are 0 or 1 items, there is no need to sort */
if
(
nCount
>
1
)
{
sortList
=
DPA_Create
(
nCount
);
...
...
@@ -5130,7 +5131,7 @@ static LRESULT LISTVIEW_SortItems(HWND hwnd, WPARAM wParam, LPARAM lParam)
infoPtr
->
pfnCompare
=
(
PFNLVCOMPARE
)
lParam
;
infoPtr
->
lParamSort
=
(
LPARAM
)
wParam
;
/
/ append pointers one by one to sortList
/
* append pointers one by one to sortList */
for
(
i
=
0
;
i
<
nCount
;
i
++
)
{
if
((
hdpaSubItems
=
(
HDPA
)
DPA_GetPtr
(
infoPtr
->
hdpaItems
,
i
)))
...
...
@@ -5138,10 +5139,10 @@ static LRESULT LISTVIEW_SortItems(HWND hwnd, WPARAM wParam, LPARAM lParam)
DPA_InsertPtr
(
sortList
,
nCount
+
1
,
lpItem
);
}
/
/ sort the sortList
/
* sort the sortList */
DPA_Sort
(
sortList
,
LISTVIEW_CallBackCompare
,
hwnd
);
/
/ copy the pointers back
/
* copy the pointers back */
for
(
i
=
0
;
i
<
nCount
;
i
++
)
{
if
((
hdpaSubItems
=
(
HDPA
)
DPA_GetPtr
(
infoPtr
->
hdpaItems
,
i
))
&&
...
...
dlls/comctl32/treeview.c
View file @
13a30bac
...
...
@@ -1145,8 +1145,9 @@ TREEVIEW_GetItemA (HWND hwnd, WPARAM wParam, LPARAM lParam)
FIXME
(
" TVIF_INTEGRAL not supported yet
\n
"
);
}
// undocumented: windows ignores TVIF_PARAM and
// always sets lParam
/* undocumented: windows ignores TVIF_PARAM and
* always sets lParam
*/
tvItem
->
lParam
=
wineItem
->
lParam
;
if
(
tvItem
->
mask
&
TVIF_SELECTEDIMAGE
)
{
...
...
ole/typelib.c
View file @
13a30bac
...
...
@@ -163,7 +163,7 @@ HRESULT WINAPI LoadTypeLib(
p
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
szFile
);
res
=
TLB_ReadTypeLib
(
p
,
pptLib
);
/
/XXX need to free p ??
/
* XXX need to free p ?? */
TRACE
(
typelib
,
" returns %ld
\n
"
,
res
);
...
...
@@ -1963,9 +1963,9 @@ static HRESULT WINAPI ITypeInfo_fnGetRefTypeInfo( LPTYPEINFO iface,
pRefType
->
reference
!=
hRefType
;
pRefType
=
pRefType
->
next
)
;
if
(
!
pRefType
)
return
TYPE_E_ELEMENTNOTFOUND
;
/
/FIXME : correct?
return
TYPE_E_ELEMENTNOTFOUND
;
/
* FIXME : correct? */
pTypeLib
=
pRefType
->
pImpTLInfo
->
pImpTypeLib
;
if
(
pTypeLib
)
/
/ typelib already loaded
if
(
pTypeLib
)
/
* typelib already loaded */
result
=
pTypeLib
->
lpvtbl
->
fnGetTypeInfoOfGuid
(
(
LPTYPELIB
)
pTypeLib
,
&
pRefType
->
guid
,
ppTInfo
);
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