mirror of
https://github.com/reactos/reactos.git
synced 2024-08-12 06:06:27 +00:00
[USRMGR] Update Icons and show imagelists with 32 instead of 8 bit. Patch by Jared Smudde. CORE-10516
svn path=/trunk/; revision=69969
This commit is contained in:
parent
0e3e0f5a52
commit
c7f7d51121
|
@ -83,7 +83,7 @@ InitGroupMembersList(HWND hwndDlg,
|
||||||
hwndLV = GetDlgItem(hwndDlg, IDC_USER_ADD_MEMBERSHIP_LIST);
|
hwndLV = GetDlgItem(hwndDlg, IDC_USER_ADD_MEMBERSHIP_LIST);
|
||||||
GetClientRect(hwndLV, &rect);
|
GetClientRect(hwndLV, &rect);
|
||||||
|
|
||||||
hImgList = ImageList_Create(16,16,ILC_COLOR8 | ILC_MASK,5,5);
|
hImgList = ImageList_Create(16,16,ILC_COLOR32 | ILC_MASK,5,5);
|
||||||
hIcon = LoadImage(hApplet,MAKEINTRESOURCE(IDI_GROUP),IMAGE_ICON,16,16,LR_DEFAULTCOLOR);
|
hIcon = LoadImage(hApplet,MAKEINTRESOURCE(IDI_GROUP),IMAGE_ICON,16,16,LR_DEFAULTCOLOR);
|
||||||
ImageList_AddIcon(hImgList,hIcon);
|
ImageList_AddIcon(hImgList,hIcon);
|
||||||
DestroyIcon(hIcon);
|
DestroyIcon(hIcon);
|
||||||
|
@ -406,7 +406,7 @@ GetGeneralGroupData(HWND hwndDlg,
|
||||||
hwndLV = GetDlgItem(hwndDlg, IDC_GROUP_GENERAL_MEMBERS);
|
hwndLV = GetDlgItem(hwndDlg, IDC_GROUP_GENERAL_MEMBERS);
|
||||||
|
|
||||||
/* Create the image list */
|
/* Create the image list */
|
||||||
hImgList = ImageList_Create(16, 16, ILC_COLOR8 | ILC_MASK, 5, 5);
|
hImgList = ImageList_Create(16, 16, ILC_COLOR32 | ILC_MASK, 5, 5);
|
||||||
hIcon = LoadImage(hApplet, MAKEINTRESOURCE(IDI_GROUP), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR);
|
hIcon = LoadImage(hApplet, MAKEINTRESOURCE(IDI_GROUP), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR);
|
||||||
ImageList_AddIcon(hImgList, hIcon);
|
ImageList_AddIcon(hImgList, hIcon);
|
||||||
DestroyIcon(hIcon);
|
DestroyIcon(hIcon);
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
@ -513,7 +513,7 @@ OnInitDialog(HWND hwndDlg)
|
||||||
HICON hIcon;
|
HICON hIcon;
|
||||||
|
|
||||||
/* Create the image list */
|
/* Create the image list */
|
||||||
hImgList = ImageList_Create(16, 16, ILC_COLOR8 | ILC_MASK, 5, 5);
|
hImgList = ImageList_Create(16, 16, ILC_COLOR32 | ILC_MASK, 5, 5);
|
||||||
hIcon = LoadImage(hApplet, MAKEINTRESOURCE(IDI_USER), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR);
|
hIcon = LoadImage(hApplet, MAKEINTRESOURCE(IDI_USER), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR);
|
||||||
ImageList_AddIcon(hImgList, hIcon);
|
ImageList_AddIcon(hImgList, hIcon);
|
||||||
hIcon = LoadImage(hApplet, MAKEINTRESOURCE(IDI_LOCKED_USER), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR);
|
hIcon = LoadImage(hApplet, MAKEINTRESOURCE(IDI_LOCKED_USER), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR);
|
||||||
|
|
Loading…
Reference in a new issue