From 48e396ea6cdba2cac3d0c1ea3df44c9f3b879f35 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 2 Jun 2010 15:51:39 +0200 Subject: [PATCH] comctl32: Load comctl32 builtin bitmaps as 32-bit DIBs. --- dlls/comctl32/toolbar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c index 684406b3a09..fe782c3e4c3 100644 --- a/dlls/comctl32/toolbar.c +++ b/dlls/comctl32/toolbar.c @@ -2710,6 +2710,9 @@ TOOLBAR_AddBitmapToImageList(TOOLBAR_INFO *infoPtr, HIMAGELIST himlDef, const TB /* Add bitmaps to the default image list */ if (bitmap->hInst == NULL) /* a handle was passed */ hbmLoad = CopyImage(ULongToHandle(bitmap->nID), IMAGE_BITMAP, 0, 0, 0); + else if (bitmap->hInst == COMCTL32_hModule) + hbmLoad = LoadImageW( bitmap->hInst, MAKEINTRESOURCEW(bitmap->nID), + IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION ); else hbmLoad = CreateMappedBitmap(bitmap->hInst, bitmap->nID, 0, NULL, 0);