summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/init.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-06-27 20:22:12 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-06-27 20:22:20 +0300
commit0e022bdc8e48520231103b0fc11c6525f3b211cc (patch)
treedc98d9df691a4f90a5eaafa4eecff99a05b6a61b /plugins/UserInfoEx/src/init.cpp
parentc27c86cb021b6bf789ee674fab29164448e0c251 (diff)
fixes #1442 (UserInfoEx Button on ToolBar)
Diffstat (limited to 'plugins/UserInfoEx/src/init.cpp')
-rw-r--r--plugins/UserInfoEx/src/init.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/plugins/UserInfoEx/src/init.cpp b/plugins/UserInfoEx/src/init.cpp
index 3203cc87a6..dc30e6f5ec 100644
--- a/plugins/UserInfoEx/src/init.cpp
+++ b/plugins/UserInfoEx/src/init.cpp
@@ -61,8 +61,23 @@ CMPlugin::CMPlugin() :
**/
static int OnTopToolBarLoaded(WPARAM, LPARAM)
{
- DlgAnniversaryListOnTopToolBarLoaded();
- SvcReminderOnTopToolBarLoaded();
+ TTBButton ttb = {};
+ ttb.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP;
+ ttb.pszService = MS_USERINFO_SHOWDIALOG;
+ ttb.hIconHandleUp = IcoLib_GetIconHandle(ICO_COMMON_MAIN);
+ ttb.name = ttb.pszTooltipUp = LPGEN("User &details");
+ g_plugin.addTTB(&ttb);
+
+ ttb.dwFlags = TTBBF_SHOWTOOLTIP;
+ ttb.pszService = MS_USERINFO_REMINDER_LIST;
+ ttb.hIconHandleUp = IcoLib_GetIconHandle(ICO_COMMON_ANNIVERSARY);
+ ttb.name = ttb.pszTooltipUp = LPGEN("Anniversary list");
+ g_plugin.addTTB(&ttb);
+
+ ttb.pszService = MS_USERINFO_REMINDER_CHECK;
+ ttb.hIconHandleUp = IcoLib_GetIconHandle(ICO_COMMON_BIRTHDAY);
+ ttb.name = ttb.pszTooltipUp = LPGEN("Check anniversaries");
+ g_plugin.addTTB(&ttb);
return 0;
}