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
76c7f280
Commit
76c7f280
authored
Nov 13, 2009
by
Owen Rudge
Committed by
Alexandre Julliard
Nov 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Implement Copy, Merge and Clone methods in IImageList.
parent
b37009ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
7 deletions
+54
-7
imagelist.c
dlls/comctl32/imagelist.c
+54
-7
No files found.
dlls/comctl32/imagelist.c
View file @
76c7f280
...
...
@@ -3102,23 +3102,70 @@ static HRESULT WINAPI ImageListImpl_GetImageInfo(IImageList *iface, int i,
static
HRESULT
WINAPI
ImageListImpl_Copy
(
IImageList
*
iface
,
int
iDst
,
IUnknown
*
punkSrc
,
int
iSrc
,
UINT
uFlags
)
{
FIXME
(
"STUB: %p %d %p %d %x
\n
"
,
iface
,
iDst
,
punkSrc
,
iSrc
,
uFlags
);
return
E_NOTIMPL
;
HIMAGELIST
This
=
(
HIMAGELIST
)
iface
;
IImageList
*
src
=
NULL
;
HRESULT
ret
;
if
(
!
punkSrc
)
return
E_FAIL
;
/* TODO: Add test for IID_ImageList2 too */
if
(
!
SUCCEEDED
(
IImageList_QueryInterface
(
punkSrc
,
&
IID_IImageList
,
(
void
**
)
&
src
)))
return
E_FAIL
;
if
(
ImageList_Copy
(
This
,
iDst
,
(
HIMAGELIST
)
src
,
iSrc
,
uFlags
))
ret
=
S_OK
;
else
ret
=
E_FAIL
;
IImageList_Release
(
src
);
return
ret
;
}
static
HRESULT
WINAPI
ImageListImpl_Merge
(
IImageList
*
iface
,
int
i1
,
IUnknown
*
punk2
,
int
i2
,
int
dx
,
int
dy
,
REFIID
riid
,
PVOID
*
ppv
)
{
FIXME
(
"STUB: %p %d %p %d %d %d %s %p
\n
"
,
iface
,
i1
,
punk2
,
i2
,
dx
,
dy
,
debugstr_guid
(
riid
),
ppv
);
return
E_NOTIMPL
;
HIMAGELIST
This
=
(
HIMAGELIST
)
iface
;
IImageList
*
iml2
=
NULL
;
HIMAGELIST
hNew
;
HRESULT
ret
=
E_FAIL
;
if
(
!
punk2
||
!
ppv
)
return
E_FAIL
;
/* TODO: Add test for IID_ImageList2 too */
if
(
!
SUCCEEDED
(
IImageList_QueryInterface
(
punk2
,
&
IID_IImageList
,
(
void
**
)
&
iml2
)))
return
E_FAIL
;
hNew
=
ImageList_Merge
(
This
,
i1
,
(
HIMAGELIST
)
iml2
,
i2
,
dx
,
dy
);
/* Get the interface for the new image list */
if
(
hNew
)
ret
=
HIMAGELIST_QueryInterface
(
hNew
,
riid
,
ppv
);
IImageList_Release
(
iml2
);
return
ret
;
}
static
HRESULT
WINAPI
ImageListImpl_Clone
(
IImageList
*
iface
,
REFIID
riid
,
PVOID
*
ppv
)
{
FIXME
(
"STUB: %p %s %p
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppv
);
return
E_NOTIMPL
;
HIMAGELIST
This
=
(
HIMAGELIST
)
iface
;
HIMAGELIST
hNew
;
HRESULT
ret
=
E_FAIL
;
if
(
!
ppv
)
return
E_FAIL
;
hNew
=
ImageList_Duplicate
(
This
);
/* Get the interface for the new image list */
if
(
hNew
)
ret
=
HIMAGELIST_QueryInterface
(
hNew
,
riid
,
ppv
);
return
ret
;
}
static
HRESULT
WINAPI
ImageListImpl_GetImageRect
(
IImageList
*
iface
,
int
i
,
...
...
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