fix displaying of large icons. Thanks to Christoph for pointing this
out.
Modified: trunk/reactos/base/system/servman/query.c
_____
Modified: trunk/reactos/base/system/servman/query.c
--- trunk/reactos/base/system/servman/query.c 2006-02-03 18:19:53 UTC
(rev 74)
+++ trunk/reactos/base/system/servman/query.c 2006-02-03 19:18:17 UTC
(rev 75)
@@ -194,7 +194,7 @@
if (NumServices)
{
- HICON hiconItem, hiconItem2; /* icon for list-view items */
+ HICON hSmIconItem, hLgIconItem; /* icon for list-view items
*/
HIMAGELIST hSmall, hLarge; /* image list for other views */
TCHAR buf[300]; /* buffer to hold key path */
INT NumListedServ = 0; /* how many services were listed */
@@ -203,17 +203,17 @@
hSmall = ImageList_Create(GetSystemMetrics(SM_CXSMICON),
GetSystemMetrics(SM_CYSMICON), ILC_MASK | ILC_COLOR32, 1, 1);
- hLarge = ImageList_Create(GetSystemMetrics(SM_CXSMICON),
- GetSystemMetrics(SM_CYSMICON), ILC_MASK | ILC_COLOR32, 1, 1);
+ hLarge = ImageList_Create(GetSystemMetrics(SM_CXICON),
+ GetSystemMetrics(SM_CYICON), ILC_MASK | ILC_COLOR32, 1, 1);
/* Add an icon to each image list */
- hiconItem = LoadImage(hInstance, MAKEINTRESOURCE(IDI_SM_ICON),
+ hSmIconItem = LoadImage(hInstance,
MAKEINTRESOURCE(IDI_SM_ICON),
IMAGE_ICON, 16, 16, 0);
- ImageList_AddIcon(hSmall, hiconItem);
+ ImageList_AddIcon(hSmall, hSmIconItem);
- hiconItem2 = LoadImage(hInstance, MAKEINTRESOURCE(IDI_SM_ICON),
- IMAGE_ICON, 48, 48, 0);
- ImageList_AddIcon(hLarge, hiconItem2);
+ hLgIconItem = LoadImage(hInstance,
MAKEINTRESOURCE(IDI_SM_ICON),
+ IMAGE_ICON, 32, 32, 0);
+ ImageList_AddIcon(hLarge, hLgIconItem);
/* assign the image to the list view */
ListView_SetImageList(hListView, hSmall, LVSIL_SMALL);