Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2e9a6e96
Commit
2e9a6e96
authored
Nov 16, 2009
by
Owen Rudge
Committed by
Alexandre Julliard
Nov 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Implement GetImageRect, Get/SetIconSize, Get/SetBkColor.
parent
9adc1b8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
10 deletions
+24
-10
imagelist.c
dlls/comctl32/imagelist.c
+24
-10
No files found.
dlls/comctl32/imagelist.c
View file @
2e9a6e96
...
...
@@ -3162,22 +3162,30 @@ static HRESULT WINAPI ImageListImpl_Clone(IImageList *iface, REFIID riid,
static
HRESULT
WINAPI
ImageListImpl_GetImageRect
(
IImageList
*
iface
,
int
i
,
RECT
*
prc
)
{
FIXME
(
"STUB: %p %d %p
\n
"
,
iface
,
i
,
prc
);
return
E_NOTIMPL
;
HIMAGELIST
This
=
(
HIMAGELIST
)
iface
;
IMAGEINFO
info
;
if
(
!
prc
)
return
E_FAIL
;
if
(
!
ImageList_GetImageInfo
(
This
,
i
,
&
info
))
return
E_FAIL
;
return
CopyRect
(
prc
,
&
info
.
rcImage
)
?
S_OK
:
E_FAIL
;
}
static
HRESULT
WINAPI
ImageListImpl_GetIconSize
(
IImageList
*
iface
,
int
*
cx
,
int
*
cy
)
{
FIXME
(
"STUB: %p %p %p
\n
"
,
iface
,
cx
,
cy
);
return
E_NOTIMPL
;
HIMAGELIST
This
=
(
HIMAGELIST
)
iface
;
return
ImageList_GetIconSize
(
This
,
cx
,
cy
)
?
S_OK
:
E_FAIL
;
}
static
HRESULT
WINAPI
ImageListImpl_SetIconSize
(
IImageList
*
iface
,
int
cx
,
int
cy
)
{
FIXME
(
"STUB: %p %d %d
\n
"
,
iface
,
cx
,
cy
);
return
E_NOTIMPL
;
return
ImageList_SetIconSize
((
HIMAGELIST
)
iface
,
cx
,
cy
)
?
S_OK
:
E_FAIL
;
}
static
HRESULT
WINAPI
ImageListImpl_GetImageCount
(
IImageList
*
iface
,
int
*
pi
)
...
...
@@ -3198,14 +3206,20 @@ static HRESULT WINAPI ImageListImpl_SetImageCount(IImageList *iface,
static
HRESULT
WINAPI
ImageListImpl_SetBkColor
(
IImageList
*
iface
,
COLORREF
clrBk
,
COLORREF
*
pclr
)
{
FIXME
(
"STUB: %p %x %p
\n
"
,
iface
,
clrBk
,
pclr
);
return
E_NOTIMPL
;
if
(
!
pclr
)
return
E_FAIL
;
*
pclr
=
ImageList_SetBkColor
((
HIMAGELIST
)
iface
,
clrBk
);
return
*
pclr
==
CLR_NONE
?
E_FAIL
:
S_OK
;
}
static
HRESULT
WINAPI
ImageListImpl_GetBkColor
(
IImageList
*
iface
,
COLORREF
*
pclr
)
{
FIXME
(
"STUB: %p %p
\n
"
,
iface
,
pclr
);
return
E_NOTIMPL
;
if
(
!
pclr
)
return
E_FAIL
;
*
pclr
=
ImageList_GetBkColor
((
HIMAGELIST
)
iface
);
return
S_OK
;
}
static
HRESULT
WINAPI
ImageListImpl_BeginDrag
(
IImageList
*
iface
,
int
iTrack
,
...
...
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