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
dff6be09
Commit
dff6be09
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 Add, ReplaceIcon, GetImageCount, SetImageCount in IImageList.
parent
8f31df1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
10 deletions
+33
-10
imagelist.c
dlls/comctl32/imagelist.c
+33
-10
No files found.
dlls/comctl32/imagelist.c
View file @
dff6be09
...
...
@@ -2985,15 +2985,37 @@ static ULONG WINAPI ImageListImpl_Release(IImageList *iface)
static
HRESULT
WINAPI
ImageListImpl_Add
(
IImageList
*
iface
,
HBITMAP
hbmImage
,
HBITMAP
hbmMask
,
int
*
pi
)
{
FIXME
(
"STUB: %p %p %p %p
\n
"
,
iface
,
hbmImage
,
hbmMask
,
pi
);
return
E_NOTIMPL
;
HIMAGELIST
This
=
(
HIMAGELIST
)
iface
;
int
ret
;
if
(
!
pi
)
return
E_FAIL
;
ret
=
ImageList_Add
(
This
,
hbmImage
,
hbmMask
);
if
(
ret
==
-
1
)
return
E_FAIL
;
*
pi
=
ret
;
return
S_OK
;
}
static
HRESULT
WINAPI
ImageListImpl_ReplaceIcon
(
IImageList
*
iface
,
int
i
,
HICON
hicon
,
int
*
pi
)
{
FIXME
(
"STUB: %p %d %p %p
\n
"
,
iface
,
i
,
hicon
,
pi
);
return
E_NOTIMPL
;
HIMAGELIST
This
=
(
HIMAGELIST
)
iface
;
int
ret
;
if
(
!
pi
)
return
E_FAIL
;
ret
=
ImageList_ReplaceIcon
(
This
,
i
,
hicon
);
if
(
ret
==
-
1
)
return
E_FAIL
;
*
pi
=
ret
;
return
S_OK
;
}
static
HRESULT
WINAPI
ImageListImpl_SetOverlayImage
(
IImageList
*
iface
,
...
...
@@ -3026,8 +3048,7 @@ static HRESULT WINAPI ImageListImpl_Draw(IImageList *iface,
static
HRESULT
WINAPI
ImageListImpl_Remove
(
IImageList
*
iface
,
int
i
)
{
FIXME
(
"STUB: %p %d
\n
"
,
iface
,
i
);
return
E_NOTIMPL
;
return
(
ImageList_Remove
((
HIMAGELIST
)
iface
,
i
)
==
0
)
?
E_FAIL
:
S_OK
;
}
static
HRESULT
WINAPI
ImageListImpl_GetIcon
(
IImageList
*
iface
,
int
i
,
UINT
flags
,
...
...
@@ -3089,15 +3110,17 @@ static HRESULT WINAPI ImageListImpl_SetIconSize(IImageList *iface, int cx,
static
HRESULT
WINAPI
ImageListImpl_GetImageCount
(
IImageList
*
iface
,
int
*
pi
)
{
FIXME
(
"STUB: %p %p
\n
"
,
iface
,
pi
);
return
E_NOTIMPL
;
if
(
!
pi
)
return
E_FAIL
;
*
pi
=
ImageList_GetImageCount
((
HIMAGELIST
)
iface
);
return
S_OK
;
}
static
HRESULT
WINAPI
ImageListImpl_SetImageCount
(
IImageList
*
iface
,
UINT
uNewCount
)
{
FIXME
(
"STUB: %p %d
\n
"
,
iface
,
uNewCount
);
return
E_NOTIMPL
;
return
ImageList_SetImageCount
((
HIMAGELIST
)
iface
,
uNewCount
)
?
S_OK
:
E_FAIL
;
}
static
HRESULT
WINAPI
ImageListImpl_SetBkColor
(
IImageList
*
iface
,
COLORREF
clrBk
,
...
...
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