Display nice images taken (and modified) from http://www.lullabot.com/articles/free_g...
authorThomas Bluemel <thomas@reactsoft.com>
Sun, 10 Jun 2007 11:17:38 +0000 (11:17 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Sun, 10 Jun 2007 11:17:38 +0000 (11:17 +0000)
svn path=/trunk/; revision=27108

reactos/dll/win32/aclui/aclui.c
reactos/dll/win32/aclui/res/usrgrp.bmp

index cf95f9e..9573988 100644 (file)
@@ -1363,13 +1363,28 @@ SecurityPageProc(IN HWND hwndDlg,
                                                               LVS_EX_FULLROWSELECT,
                                                               LVS_EX_FULLROWSELECT);
 
-                    sp->hiPrincipals = ImageList_LoadBitmap(hDllInstance,
-                                                            MAKEINTRESOURCE(IDB_USRGRPIMAGES),
-                                                            16,
-                                                            3,
-                                                            RGB(255,
-                                                                0,
-                                                                255));
+                    sp->hiPrincipals = ImageList_Create(16,
+                                                        16,
+                                                        ILC_COLOR32 | ILC_MASK,
+                                                        0,
+                                                        3);
+                    if (sp->hiPrincipals != NULL)
+                    {
+                        HBITMAP hbmImages;
+
+                        hbmImages = LoadBitmap(hDllInstance,
+                                               MAKEINTRESOURCE(IDB_USRGRPIMAGES));
+                        if (hbmImages != NULL)
+                        {
+                            ImageList_AddMasked(sp->hiPrincipals,
+                                                hbmImages,
+                                                RGB(255,
+                                                    0,
+                                                    255));
+
+                            DeleteObject(hbmImages);
+                        }
+                    }
 
                     /* setup the listview control */
                     if (sp->hiPrincipals != NULL)
index 575112c..b20b728 100644 (file)
Binary files a/reactos/dll/win32/aclui/res/usrgrp.bmp and b/reactos/dll/win32/aclui/res/usrgrp.bmp differ