From f545bc769a16d1ff7b302733f793cbcbd397cdca Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 22 May 2018 20:13:26 +0300 Subject: new helper for MS_TTB_ADDBUTTON --- plugins/Quotes/src/Forex.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Quotes/src') diff --git a/plugins/Quotes/src/Forex.cpp b/plugins/Quotes/src/Forex.cpp index 43a1bea703..74d8350ff4 100644 --- a/plugins/Quotes/src/Forex.cpp +++ b/plugins/Quotes/src/Forex.cpp @@ -161,7 +161,7 @@ int Quotes_OnToolbarLoaded(WPARAM, LPARAM) ttb.hIconHandleUp = Quotes_GetIconHandle(IDI_ICON_MAIN); ttb.hIconHandleDn = Quotes_GetIconHandle(IDI_ICON_DISABLED); ttb.dwFlags = ((g_bAutoUpdate) ? 0 : TTBBF_PUSHED) | TTBBF_ASPUSHBUTTON | TTBBF_VISIBLE; - g_hTBButton = TopToolbar_AddButton(&ttb); + g_hTBButton = g_plugin.addTTB(&ttb); ttb.name = LPGEN("Currency Converter"); ttb.pszService = g_pszCurrencyConverter; @@ -170,7 +170,7 @@ int Quotes_OnToolbarLoaded(WPARAM, LPARAM) ttb.hIconHandleUp = Quotes_GetIconHandle(IDI_ICON_CURRENCY_CONVERTER); ttb.hIconHandleDn = Quotes_GetIconHandle(IDI_ICON_CURRENCY_CONVERTER); ttb.dwFlags = TTBBF_VISIBLE; - TopToolbar_AddButton(&ttb); + g_plugin.addTTB(&ttb); return 0; } -- cgit v1.2.3