summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/dlg_anniversarylist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/UserInfoEx/dlg_anniversarylist.cpp')
-rw-r--r--plugins/UserInfoEx/dlg_anniversarylist.cpp24
1 files changed, 2 insertions, 22 deletions
diff --git a/plugins/UserInfoEx/dlg_anniversarylist.cpp b/plugins/UserInfoEx/dlg_anniversarylist.cpp
index 0ea9b5b645..827e4e7b78 100644
--- a/plugins/UserInfoEx/dlg_anniversarylist.cpp
+++ b/plugins/UserInfoEx/dlg_anniversarylist.cpp
@@ -1095,29 +1095,9 @@ VOID DlgAnniversaryListOnTopToolBarLoaded()
ttb.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP | TTBBF_ICONBYHANDLE;
ttb.pszService = MS_USERINFO_REMINDER_LIST;
ttb.hIconHandleDn = ttb.hIconHandleUp = Skin_GetIconHandle(ICO_COMMON_ANNIVERSARY);
+ ttb.pszTooltipDn = ttb.pszTooltipUp = LPGEN("Anniversary list");
ttb.name = "Anniversary list";
- CallService(MS_TTB_ADDBUTTON, (WPARAM) &ttb, 0);
-}
-
-/**
- * This function is called by the ME_TB_MODULELOADED event.
- * It adds a set of buttons to the Toolbar of the Modern Contact List.
- *
- * @param wParam - none
- *
- * @return nothing
- **/
-VOID DlgAnniversaryListOnToolBarLoaded()
-{
- TBButton tbb = { 0 };
- tbb.cbSize = sizeof(tbb);
- tbb.tbbFlags = TBBF_VISIBLE | TBBF_SHOWTOOLTIP;
- tbb.defPos = 2100;
- tbb.pszButtonName = tbb.pszButtonID = TBB_IDBTN;
- tbb.pszServiceName = MS_USERINFO_REMINDER_LIST;
- tbb.pszTooltipDn = tbb.pszTooltipUp = LPGEN("Anniversary list");
- tbb.hPrimaryIconHandle = tbb.hSecondaryIconHandle = Skin_GetIconHandle(ICO_COMMON_ANNIVERSARY);
- CallService(MS_TB_ADDBUTTON, 0, (LPARAM) &tbb);
+ TopToolbar_AddButton(&ttb);
}
/**