Alexandre Julliard : comctl32: Load comctl32 builtin bitmaps as 32-bit DIBs .

Alexandre Julliard julliard at winehq.org
Wed Jun 2 11:16:24 CDT 2010


Module: wine
Branch: master
Commit: 48e396ea6cdba2cac3d0c1ea3df44c9f3b879f35
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=48e396ea6cdba2cac3d0c1ea3df44c9f3b879f35

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Jun  2 15:51:39 2010 +0200

comctl32: Load comctl32 builtin bitmaps as 32-bit DIBs.

---

 dlls/comctl32/toolbar.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index 684406b..fe782c3 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);
 




More information about the wine-cvs mailing list