summaryrefslogtreecommitdiff
path: root/plugins/Alarms/alarms.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Alarms/alarms.cpp')
-rw-r--r--plugins/Alarms/alarms.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/Alarms/alarms.cpp b/plugins/Alarms/alarms.cpp
index 79cea6c27f..e63e2090fc 100644
--- a/plugins/Alarms/alarms.cpp
+++ b/plugins/Alarms/alarms.cpp
@@ -200,12 +200,13 @@ HBITMAP LoadBmpFromIcon(int IdRes)
return hBmp;
}
-static int InitTopToolbarButton(WPARAM wParam, LPARAM lParam) {
+static int InitTopToolbarButton(WPARAM wParam, LPARAM lParam)
+{
TTBButton ttb = {0};
ttb.cbSize = sizeof(ttb);
- ttb.hbBitmapUp = LoadBmpFromIcon(IDI_TBUP); //LoadBitmap(hInst, MAKEINTRESOURCE(IDB_CLOCK));
- ttb.hbBitmapDown = LoadBmpFromIcon(IDI_TBDN); //LoadBitmap(hInst, MAKEINTRESOURCE(IDB_CLOCK));
+ ttb.hIconUp = LoadIcon(hInst, MAKEINTRESOURCE(IDI_TBUP));
+ ttb.hIconDn = LoadIcon(hInst, MAKEINTRESOURCE(IDI_TBDN));
ttb.pszServiceDown = MODULE "/NewAlarm";
ttb.dwFlags = TTBBF_VISIBLE;// | TTBBF_DRAWBORDER;
ttb.name = Translate("Set Alarm");