comctl32: Add stubs for image list functions introduced in Vista.

This commit is contained in:
Owen Rudge 2009-08-12 21:51:36 +01:00 committed by Alexandre Julliard
parent 1556fbf86c
commit 956a52bd7f
4 changed files with 50 additions and 0 deletions

View File

@ -139,10 +139,12 @@
@ stdcall FlatSB_SetScrollRange (long long long long long)
@ stdcall FlatSB_ShowScrollBar (long long long)
@ stdcall GetMUILanguage()
@ stdcall HIMAGELIST_QueryInterface(ptr ptr ptr)
@ stdcall ImageList_Add(ptr long long)
@ stdcall ImageList_AddIcon(ptr long)
@ stdcall ImageList_AddMasked(ptr long long)
@ stdcall ImageList_BeginDrag(ptr long long long)
@ stdcall ImageList_CoCreateInstance(ptr ptr ptr ptr)
@ stdcall ImageList_Copy(ptr long ptr long long)
@ stdcall ImageList_Create(long long long long long)
@ stdcall ImageList_Destroy(ptr)

View File

@ -6,6 +6,7 @@
* Copyright 2001, 2004 Michael Stefaniuc
* Copyright 2001 Charles Loep for CodeWeavers
* Copyright 2002 Dimitrie O. Paun
* Copyright 2009 Owen Rudge for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@ -2906,3 +2907,47 @@ ImageList_SetColorTable (HIMAGELIST himl, UINT uStartIndex, UINT cEntries, CONST
{
return SetDIBColorTable(himl->hdcImage, uStartIndex, cEntries, prgb);
}
/*************************************************************************
* ImageList_CoCreateInstance [COMCTL32.@]
*
* Creates a new imagelist instance and returns an interface pointer to it.
*
* PARAMS
* rclsid [I] A reference to the CLSID (CLSID_ImageList).
* punkOuter [I] Pointer to IUnknown interface for aggregation, if desired
* riid [I] Identifier of the requested interface.
* ppv [O] Returns the address of the pointer requested, or NULL.
*
* RETURNS
* Success: S_OK.
* Failure: Error value.
*/
HRESULT WINAPI
ImageList_CoCreateInstance (REFCLSID rclsid, const IUnknown *punkOuter, REFIID riid, void **ppv)
{
FIXME("STUB: %s %p %s %p\n", debugstr_guid(rclsid), punkOuter, debugstr_guid(riid), ppv);
return E_NOINTERFACE;
}
/*************************************************************************
* HIMAGELIST_QueryInterface [COMCTL32.@]
*
* Returns a pointer to an IImageList or IImageList2 object for the given
* HIMAGELIST.
*
* PARAMS
* himl [I] Image list handle.
* riid [I] Identifier of the requested interface.
* ppv [O] Returns the address of the pointer requested, or NULL.
*
* RETURNS
* Success: S_OK.
* Failure: Error value.
*/
HRESULT WINAPI
HIMAGELIST_QueryInterface (HIMAGELIST himl, REFIID riid, void **ppv)
{
FIXME("STUB: %p %s %p\n", himl, debugstr_guid(riid), ppv);
return E_NOINTERFACE;
}

View File

@ -584,6 +584,7 @@ typedef struct _IMAGELISTDRAWPARAMS
} IMAGELISTDRAWPARAMS, *LPIMAGELISTDRAWPARAMS;
HRESULT WINAPI HIMAGELIST_QueryInterface(HIMAGELIST,REFIID,void **);
INT WINAPI ImageList_Add(HIMAGELIST,HBITMAP,HBITMAP);
INT WINAPI ImageList_AddMasked(HIMAGELIST,HBITMAP,COLORREF);
BOOL WINAPI ImageList_BeginDrag(HIMAGELIST,INT,INT,INT);

View File

@ -61,6 +61,8 @@ typedef struct
typedef IMAGELISTDRAWPARAMS* LPIMAGELISTDRAWPARAMS;
cpp_quote("#endif")
cpp_quote("HRESULT WINAPI ImageList_CoCreateInstance(REFCLSID,const IUnknown *, REFIID,void **);")
const UINT ILIF_ALPHA = 1;
[