Fixed ImageList_LoadImage().

This commit is contained in:
Eric Kohl 1998-11-22 17:59:57 +00:00 committed by Alexandre Julliard
parent 66ef011ce5
commit 437449fb03
2 changed files with 46 additions and 10 deletions

View File

@ -31,6 +31,7 @@
#include "windows.h" #include "windows.h"
#include "winversion.h"
#include "compobj.h" #include "compobj.h"
#include "storage.h" #include "storage.h"
#include "imagelist.h" #include "imagelist.h"
@ -1383,7 +1384,7 @@ ImageList_GetImageRect (HIMAGELIST himl, INT32 i, LPRECT32 lpRect)
/************************************************************************* /*************************************************************************
* ImageList_LoadImage32A [COMCTL32.62][COMCTL32.63] * ImageList_LoadImage32A [COMCTL32.63]
* *
* Creates an image list from a bitmap, icon or cursor. * Creates an image list from a bitmap, icon or cursor.
* *
@ -1510,6 +1511,41 @@ ImageList_LoadImage32W (HINSTANCE32 hi, LPCWSTR lpbmp, INT32 cx, INT32 cGrow,
} }
/*************************************************************************
* ImageList_LoadImage32AW [COMCTL32.62]
*
* Creates an image list from a bitmap, icon or cursor.
*
* PARAMS
* hi [I] instance handle
* lpbmp [I] name or id of the image
* cx [I] width of each image
* cGrow [I] number of images to expand
* clrMask [I] mask color
* uType [I] type of image to load
* uFlags [I] loading flags
*
* RETURNS
* Success: handle to image list
* Failure: NULL
*
* SEE
* LoadImage ()
*/
HIMAGELIST WINAPI
ImageList_LoadImage32AW (HINSTANCE32 hi, const LPVOID lpbmp, INT32 cx,
INT32 cGrow, COLORREF clrMask, UINT32 uType,
UINT32 uFlags)
{
if (VERSION_OsIsUnicode())
return ImageList_LoadImage32W (hi, (LPCWSTR)lpbmp, cx, cGrow,
clrMask, uType, uFlags);
return ImageList_LoadImage32A (hi, (LPCSTR)lpbmp, cx, cGrow,
clrMask, uType, uFlags);
}
/************************************************************************* /*************************************************************************
* ImageList_Merge [COMCTL32.65] * ImageList_Merge [COMCTL32.65]
* *

View File

@ -1,6 +1,6 @@
name comctl32 name comctl32
type win32 type win32
init ComCtl32LibMain init COMCTL32_LibMain
# Functions exported by the Win95 comctl32.dll # Functions exported by the Win95 comctl32.dll
# (these need to have these exact ordinals, because some win95 dlls # (these need to have these exact ordinals, because some win95 dlls
@ -16,7 +16,7 @@ init ComCtl32LibMain
8 stdcall CreateMappedBitmap(long long long ptr long) CreateMappedBitmap 8 stdcall CreateMappedBitmap(long long long ptr long) CreateMappedBitmap
9 stub COMCTL32_9 9 stub COMCTL32_9
10 stub COMCTL32_10 10 stub COMCTL32_10
11 stdcall COMCTL32_11(ptr ptr long long long long) COMCTL32_11 11 stdcall DPA_Merge(ptr ptr long ptr ptr long) DPA_Merge
#12 stub Cctl1632_ThunkData32 #12 stub Cctl1632_ThunkData32
13 stub MakeDragList 13 stub MakeDragList
14 stub LBItemFromPt 14 stub LBItemFromPt
@ -67,7 +67,7 @@ init ComCtl32LibMain
59 stdcall ImageList_GetImageCount(ptr) ImageList_GetImageCount 59 stdcall ImageList_GetImageCount(ptr) ImageList_GetImageCount
60 stdcall ImageList_GetImageInfo(ptr long ptr) ImageList_GetImageInfo 60 stdcall ImageList_GetImageInfo(ptr long ptr) ImageList_GetImageInfo
61 stdcall ImageList_GetImageRect(ptr long ptr) ImageList_GetImageRect 61 stdcall ImageList_GetImageRect(ptr long ptr) ImageList_GetImageRect
63 stdcall ImageList_LoadImage(long str long long long long long) ImageList_LoadImage32A 62 stdcall ImageList_LoadImage(long str long long long long long) ImageList_LoadImage32AW
63 stdcall ImageList_LoadImageA(long str long long long long long) ImageList_LoadImage32A 63 stdcall ImageList_LoadImageA(long str long long long long long) ImageList_LoadImage32A
64 stdcall ImageList_LoadImageW(long wstr long long long long long) ImageList_LoadImage32W 64 stdcall ImageList_LoadImageW(long wstr long long long long long) ImageList_LoadImage32W
65 stdcall ImageList_Merge(ptr long ptr long long long) ImageList_Merge 65 stdcall ImageList_Merge(ptr long ptr long long long) ImageList_Merge
@ -100,7 +100,7 @@ init ComCtl32LibMain
154 stub EnumMRUListA@16 154 stub EnumMRUListA@16
155 stub FindMRUStringA@12 155 stub FindMRUStringA@12
156 stub DelMRUString@8 156 stub DelMRUString@8
157 stdcall COMCTL32_157(ptr long long long) CreateMRUListEx32A 157 stdcall CreateMRUListLazyA(ptr long long long) CreateMRUListLazy32A
163 stub CreatePage 163 stub CreatePage
164 stub CreateProxyPage 164 stub CreateProxyPage
@ -168,10 +168,10 @@ init ComCtl32LibMain
382 stub SmoothScrollWindow@4 382 stub SmoothScrollWindow@4
383 stub DoReaderMode@4 383 stub DoReaderMode@4
384 stub SetPathWordBreakProc@8 384 stub SetPathWordBreakProc@8
385 stdcall COMCTL32_385(long long long) COMCTL32_385 385 stdcall DPA_EnumCallback(long long long) DPA_EnumCallback
386 stdcall COMCTL32_386(long long long) COMCTL32_386 386 stdcall DPA_DestroyCallback(ptr ptr long) DPA_DestroyCallback
387 stdcall COMCTL32_387(long long long) COMCTL32_387 387 stdcall DSA_EnumCallback(ptr ptr long) DSA_EnumCallback
388 stdcall COMCTL32_388(long long long) COMCTL32_388 388 stdcall DSA_DestroyCallback(ptr ptr long) DSA_DestroyCallback
389 stub COMCTL32_389 389 stub COMCTL32_389
390 stub COMCTL32_390 390 stub COMCTL32_390
@ -179,7 +179,7 @@ init ComCtl32LibMain
401 stub AddMRUStringW@8 401 stub AddMRUStringW@8
402 stub FindMRUStringW@12 402 stub FindMRUStringW@12
403 stub EnumMRUListW@16 403 stub EnumMRUListW@16
404 stub COMCTL32_404 404 stub CreateMRUListLazyW@16
410 stub COMCTL32_410 410 stub COMCTL32_410
411 stub COMCTL32_411 411 stub COMCTL32_411