From 696f4ea57845f48d6d979ecd9d66bb22bd9f738d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 8 Jul 2012 20:51:14 +0000 Subject: TopToolbar usage fixed everywhere git-svn-id: http://svn.miranda-ng.org/main/trunk@861 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Svc_dbepp/main.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'plugins/Svc_dbepp/main.cpp') diff --git a/plugins/Svc_dbepp/main.cpp b/plugins/Svc_dbepp/main.cpp index 358ff1a5d5..f289c1eb77 100644 --- a/plugins/Svc_dbepp/main.cpp +++ b/plugins/Svc_dbepp/main.cpp @@ -156,17 +156,10 @@ static int OnTTBLoaded(WPARAM wParam,LPARAM lParam) ttbb.cbSize = sizeof(ttbb); ttbb.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP; ttbb.pszService = "DBEditorpp/MenuCommand"; - ttbb.name = Translate("Database Editor++"); - ttbb.hIconUp = ico; - ttbb.hIconDn = ico; -// ttbb.tooltipDn = Translate("Show DataBase Editor"); - - hTTBButt = (HANDLE)CallService(MS_TTB_ADDBUTTON, (WPARAM)&ttbb, 0); - - if (hTTBButt) - CallService(MS_TTB_SETBUTTONOPTIONS,MAKEWPARAM(TTBO_TIPNAME,hTTBButt), - (LPARAM)(Translate("Show DataBase Editor"))); - + ttbb.name = "Database Editor++"; + ttbb.hIconUp = ttbb.hIconDn = ico; + ttbb.pszTooltipUp = "Show DataBase Editor"; + hTTBButt = TopToolbar_AddButton(&ttbb); return 0; } -- cgit v1.2.3