diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-08 20:51:14 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-08 20:51:14 +0000 |
commit | 696f4ea57845f48d6d979ecd9d66bb22bd9f738d (patch) | |
tree | c32ac05d363bff47320c1b204561b966aa1c81fd /plugins/Alarms/src | |
parent | 3b396a2da6b0b8e0f4d2c051aca133772d317820 (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')
-rw-r--r-- | plugins/Alarms/src/alarms.cpp | 11 |
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};
|