New icon. Couple of code changes linked to that. Just playing :)
authorGed Murphy <gedmurphy@reactos.org>
Fri, 6 Jan 2006 00:01:20 +0000 (00:01 +0000)
committerGed Murphy <gedmurphy@reactos.org>
Fri, 6 Jan 2006 00:01:20 +0000 (00:01 +0000)
svn path=/trunk/; revision=20600

reactos/subsys/system/servman/res/applet.ico [deleted file]
reactos/subsys/system/servman/res/system.ico [new file with mode: 0644]
reactos/subsys/system/servman/servman.c
reactos/subsys/system/servman/servman.rc

diff --git a/reactos/subsys/system/servman/res/applet.ico b/reactos/subsys/system/servman/res/applet.ico
deleted file mode 100644 (file)
index 3eae16d..0000000
Binary files a/reactos/subsys/system/servman/res/applet.ico and /dev/null differ
diff --git a/reactos/subsys/system/servman/res/system.ico b/reactos/subsys/system/servman/res/system.ico
new file mode 100644 (file)
index 0000000..cc3fb03
Binary files /dev/null and b/reactos/subsys/system/servman/res/system.ico differ
index 31e828f..daf24bc 100644 (file)
@@ -91,9 +91,8 @@ GetServices ( void )
                 GetSystemMetrics(SM_CYSMICON), ILC_MASK, 1, 1);\r
 \r
             /* Add an icon to each image list */\r
-            hiconItem = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_SM_ICON));\r
+            hiconItem = LoadImage(hInstance, MAKEINTRESOURCE(IDI_SM_ICON), IMAGE_ICON, 16, 16, 0);\r
             ImageList_AddIcon(hSmall, hiconItem);\r
-            DestroyIcon(hiconItem);\r
 \r
             ListView_SetImageList(hListView, hSmall, LVSIL_SMALL);\r
 \r
@@ -574,7 +573,7 @@ int WINAPI WinMain(HINSTANCE hThisInstance, HINSTANCE hPrevInstance,
        wc.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);\r
        wc.lpszMenuName  = MAKEINTRESOURCE(IDR_MAINMENU);\r
        wc.lpszClassName = ClassName;\r
-       wc.hIconSm               = (HICON)LoadImage(GetModuleHandle(NULL),\r
+       wc.hIconSm               = (HICON)LoadImage(hInstance,\r
                         MAKEINTRESOURCE(IDI_SM_ICON), IMAGE_ICON, 16, 16, 0);\r
 \r
        if(!RegisterClassEx(&wc))\r
index 1bbcc57..3af5355 100644 (file)
@@ -10,7 +10,7 @@
 \r
 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US\r
 \r
-IDI_SM_ICON ICON "res/applet.ico"\r
+IDI_SM_ICON ICON "res/system.ico"\r
 \r
 #include "En.rc"\r
 #include "De.rc"\r