summaryrefslogtreecommitdiff
path: root/plugins/AutoShutdown/settingsdlg.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-07-03 17:22:40 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-07-03 17:22:40 +0000
commitad4e888349c2d220828c93d2d50635ff23a6fc72 (patch)
treefaec91eff1839928805c2fbfe6d04b37723dc028 /plugins/AutoShutdown/settingsdlg.cpp
parent49566229022ee6e96eac0888f9c0501fcd92033b (diff)
AutoShutdown:
plusified git-svn-id: http://svn.miranda-ng.org/main/trunk@737 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AutoShutdown/settingsdlg.cpp')
-rw-r--r--plugins/AutoShutdown/settingsdlg.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/AutoShutdown/settingsdlg.cpp b/plugins/AutoShutdown/settingsdlg.cpp
index 03f514d61b..24bceaa682 100644
--- a/plugins/AutoShutdown/settingsdlg.cpp
+++ b/plugins/AutoShutdown/settingsdlg.cpp
@@ -409,7 +409,7 @@ static WORD hToolbarButton;
static int ToolbarLoaded(WPARAM wParam,LPARAM lParam)
{
- TTBButtonV2 ttbb;
+ TTBButton ttbb;
UNREFERENCED_PARAMETER(wParam);
UNREFERENCED_PARAMETER(lParam);
@@ -418,7 +418,7 @@ static int ToolbarLoaded(WPARAM wParam,LPARAM lParam)
/* toptoolbar offers icolib support */
ttbb.hIconUp=(HICON)LoadImage(hInst,MAKEINTRESOURCE(IDI_ACTIVE),IMAGE_ICON,0,0,0);
ttbb.hIconDn=(HICON)LoadImage(hInst,MAKEINTRESOURCE(IDI_INACTIVE),IMAGE_ICON,0,0,0);
- ttbb.pszServiceUp=ttbb.pszServiceDown="AutoShutdown/MenuCommand";
+ ttbb.pszService="AutoShutdown/MenuCommand";
ttbb.dwFlags=TTBBF_VISIBLE|TTBBF_SHOWTOOLTIP;
ttbb.name=Translate("Start/Stop automatic shutdown");
@@ -457,7 +457,7 @@ void SetShutdownMenuItem(BOOL fActive)
cmi.flags|=CMIM_NAME|CMIM_ICON;
CallService(MS_CLIST_MODIFYMENUITEM,(WPARAM)hMainMenuItem,(LPARAM)&cmi);
}
- else hMainMenuItem=(HANDLE)CallService(MS_CLIST_ADDMAINMENUITEM,0,(LPARAM)&cmi);
+ else hMainMenuItem = Menu_AddMainMenuItem(&cmi);
/* tray menu */
cmi.position=899999;
@@ -465,7 +465,7 @@ void SetShutdownMenuItem(BOOL fActive)
cmi.flags|=CMIM_NAME|CMIM_ICON;
CallService(MS_CLIST_MODIFYMENUITEM,(WPARAM)hTrayMenuItem,(LPARAM)&cmi);
}
- else hTrayMenuItem=(HANDLE)CallService(MS_CLIST_ADDTRAYMENUITEM,0,(LPARAM)&cmi);
+ else hTrayMenuItem = Menu_AddTrayMenuItem(&cmi);
IcoLib_ReleaseIcon(cmi.hIcon);
}