summaryrefslogtreecommitdiff
path: root/updater/services.cpp
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-04-08 03:17:58 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-04-08 03:17:58 +0000
commite9be9eaaea3e90af7224aa7fb4bb5333e9d7be57 (patch)
tree11e7af008b0bae322664319901e1a976fd078cba /updater/services.cpp
parent92be070586e97f44892da28a592aa1c0925a40d1 (diff)
Removed translation of plugin names
Improved icon management, added support for W7 large icons git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@503 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'updater/services.cpp')
-rw-r--r--updater/services.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/updater/services.cpp b/updater/services.cpp
index 4e90b15..90215b1 100644
--- a/updater/services.cpp
+++ b/updater/services.cpp
@@ -745,12 +745,13 @@ int ServicesModulesLoaded(WPARAM wParam, LPARAM lParam) {
CLISTMENUITEM menu = {0};
menu.cbSize=sizeof(menu);
- menu.flags = CMIM_ALL;
- menu.hIcon = LoadIconEx(I_CHKUPD);
+ menu.flags = CMIM_ALL | CMIF_ICONFROMICOLIB;
+ menu.icolibItem = GetIconHandle(I_CHKUPD);
menu.pszName = "Check for updates";
menu.pszService= MS_UPDATE_CHECKFORUPDATES;
menu.position = 500010000;
+
#ifdef MS_CLIST_ADDGROUPMENUITEM
if (ServiceExists(MS_CLIST_ADDGROUPMENUITEM)) {
GroupMenuParam gmp = {0};
@@ -758,7 +759,6 @@ int ServicesModulesLoaded(WPARAM wParam, LPARAM lParam) {
}
#endif
hMainMenuItem = (HANDLE)CallService(MS_CLIST_ADDMAINMENUITEM,0,(LPARAM)&menu);
- ReleaseIconEx(menu.hIcon);
hEventServicesModulesLoaded2 = HookEvent(ME_SYSTEM_MODULESLOADED, ServicesModulesLoaded2);
startup_timer_id = SetTimer(0, 0, 5000, StartupTimerProc);