summaryrefslogtreecommitdiff
path: root/plugins/Alarms/src/alarms.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-08 20:51:14 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-08 20:51:14 +0000
commit696f4ea57845f48d6d979ecd9d66bb22bd9f738d (patch)
treec32ac05d363bff47320c1b204561b966aa1c81fd /plugins/Alarms/src/alarms.cpp
parent3b396a2da6b0b8e0f4d2c051aca133772d317820 (diff)
TopToolbar usage fixed everywhere
git-svn-id: http://svn.miranda-ng.org/main/trunk@861 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Alarms/src/alarms.cpp')
-rw-r--r--plugins/Alarms/src/alarms.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/Alarms/src/alarms.cpp b/plugins/Alarms/src/alarms.cpp
index c9305afce2..b139485105 100644
--- a/plugins/Alarms/src/alarms.cpp
+++ b/plugins/Alarms/src/alarms.cpp
@@ -200,21 +200,20 @@ HBITMAP LoadBmpFromIcon(int IdRes)
static int InitTopToolbarButton(WPARAM wParam, LPARAM lParam)
{
TTBButton ttb = {0};
-
ttb.cbSize = sizeof(ttb);
ttb.hIconUp = LoadIcon(hInst, MAKEINTRESOURCE(IDI_TBUP));
ttb.hIconDn = LoadIcon(hInst, MAKEINTRESOURCE(IDI_TBDN));
ttb.pszService = MODULE "/NewAlarm";
- ttb.dwFlags = TTBBF_VISIBLE;// | TTBBF_DRAWBORDER;
- ttb.name = Translate("Set Alarm");
+ ttb.dwFlags = TTBBF_VISIBLE;
+ ttb.name = "Set Alarm";
- hTopToolbarButton = (HANDLE)CallService(MS_TTB_ADDBUTTON, (WPARAM)&ttb, 0);
+ hTopToolbarButton = TopToolbar_AddButton(&ttb);
CallService(MS_TTB_SETBUTTONSTATE, (WPARAM)hTopToolbarButton, (LPARAM)TTBST_RELEASED);
-
return 0;
}
-static int MainInit(WPARAM wparam,LPARAM lparam) {
+static int MainInit(WPARAM wparam,LPARAM lparam)
+{
if (ServiceExists(MS_UPDATE_REGISTER)) {
// register with updater
Update update = {0};