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
8a4a7616
Commit
8a4a7616
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 SetOverlayImage, Replace, AddMasked, Draw, Remove, GetImageInfo.
parent
a07c922f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
12 deletions
+46
-12
imagelist.c
dlls/comctl32/imagelist.c
+46
-12
No files found.
dlls/comctl32/imagelist.c
View file @
8a4a7616
...
@@ -3021,29 +3021,54 @@ static HRESULT WINAPI ImageListImpl_ReplaceIcon(IImageList *iface, int i,
...
@@ -3021,29 +3021,54 @@ static HRESULT WINAPI ImageListImpl_ReplaceIcon(IImageList *iface, int i,
static
HRESULT
WINAPI
ImageListImpl_SetOverlayImage
(
IImageList
*
iface
,
static
HRESULT
WINAPI
ImageListImpl_SetOverlayImage
(
IImageList
*
iface
,
int
iImage
,
int
iOverlay
)
int
iImage
,
int
iOverlay
)
{
{
FIXME
(
"STUB: %p %d %d
\n
"
,
iface
,
iImage
,
iOverlay
);
return
ImageList_SetOverlayImage
((
HIMAGELIST
)
iface
,
iImage
,
iOverlay
)
return
E_NOTIMP
L
;
?
S_OK
:
E_FAI
L
;
}
}
static
HRESULT
WINAPI
ImageListImpl_Replace
(
IImageList
*
iface
,
int
i
,
static
HRESULT
WINAPI
ImageListImpl_Replace
(
IImageList
*
iface
,
int
i
,
HBITMAP
hbmImage
,
HBITMAP
hbmMask
)
HBITMAP
hbmImage
,
HBITMAP
hbmMask
)
{
{
FIXME
(
"STUB: %p %d %p %p
\n
"
,
iface
,
i
,
hbmImage
,
hbmMask
);
return
ImageList_Replace
((
HIMAGELIST
)
iface
,
i
,
hbmImage
,
hbmMask
)
?
S_OK
:
return
E_NOTIMP
L
;
E_FAI
L
;
}
}
static
HRESULT
WINAPI
ImageListImpl_AddMasked
(
IImageList
*
iface
,
HBITMAP
hbmImage
,
static
HRESULT
WINAPI
ImageListImpl_AddMasked
(
IImageList
*
iface
,
HBITMAP
hbmImage
,
COLORREF
crMask
,
int
*
pi
)
COLORREF
crMask
,
int
*
pi
)
{
{
FIXME
(
"STUB: %p %p %x %p
\n
"
,
iface
,
hbmImage
,
crMask
,
pi
);
HIMAGELIST
This
=
(
HIMAGELIST
)
iface
;
return
E_NOTIMPL
;
int
ret
;
if
(
!
pi
)
return
E_FAIL
;
ret
=
ImageList_AddMasked
(
This
,
hbmImage
,
crMask
);
if
(
ret
==
-
1
)
return
E_FAIL
;
*
pi
=
ret
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
ImageListImpl_Draw
(
IImageList
*
iface
,
static
HRESULT
WINAPI
ImageListImpl_Draw
(
IImageList
*
iface
,
IMAGELISTDRAWPARAMS
*
pimldp
)
IMAGELISTDRAWPARAMS
*
pimldp
)
{
{
FIXME
(
"STUB: %p %p
\n
"
,
iface
,
pimldp
);
HIMAGELIST
This
=
(
HIMAGELIST
)
iface
;
return
E_NOTIMPL
;
HIMAGELIST
old_himl
=
0
;
int
ret
=
0
;
if
(
!
pimldp
)
return
E_FAIL
;
/* As far as I can tell, Windows simply ignores the contents of pimldp->himl
so we shall simulate the same */
old_himl
=
pimldp
->
himl
;
pimldp
->
himl
=
This
;
ret
=
ImageList_DrawIndirect
(
pimldp
);
pimldp
->
himl
=
old_himl
;
return
ret
?
S_OK
:
E_FAIL
;
}
}
static
HRESULT
WINAPI
ImageListImpl_Remove
(
IImageList
*
iface
,
int
i
)
static
HRESULT
WINAPI
ImageListImpl_Remove
(
IImageList
*
iface
,
int
i
)
...
@@ -3054,15 +3079,24 @@ static HRESULT WINAPI ImageListImpl_Remove(IImageList *iface, int i)
...
@@ -3054,15 +3079,24 @@ static HRESULT WINAPI ImageListImpl_Remove(IImageList *iface, int i)
static
HRESULT
WINAPI
ImageListImpl_GetIcon
(
IImageList
*
iface
,
int
i
,
UINT
flags
,
static
HRESULT
WINAPI
ImageListImpl_GetIcon
(
IImageList
*
iface
,
int
i
,
UINT
flags
,
HICON
*
picon
)
HICON
*
picon
)
{
{
FIXME
(
"STUB: %p %d %x %p
\n
"
,
iface
,
i
,
flags
,
picon
);
HICON
hIcon
;
return
E_NOTIMPL
;
if
(
!
picon
)
return
E_FAIL
;
hIcon
=
ImageList_GetIcon
((
HIMAGELIST
)
iface
,
i
,
flags
);
if
(
hIcon
==
NULL
)
return
E_FAIL
;
*
picon
=
hIcon
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
ImageListImpl_GetImageInfo
(
IImageList
*
iface
,
int
i
,
static
HRESULT
WINAPI
ImageListImpl_GetImageInfo
(
IImageList
*
iface
,
int
i
,
IMAGEINFO
*
pImageInfo
)
IMAGEINFO
*
pImageInfo
)
{
{
FIXME
(
"STUB: %p %d %p
\n
"
,
iface
,
i
,
pImageInfo
);
return
ImageList_GetImageInfo
((
HIMAGELIST
)
iface
,
i
,
pImageInfo
)
?
S_OK
:
E_FAIL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
ImageListImpl_Copy
(
IImageList
*
iface
,
int
iDst
,
static
HRESULT
WINAPI
ImageListImpl_Copy
(
IImageList
*
iface
,
int
iDst
,
...
...
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