summaryrefslogtreecommitdiff
path: root/plugins/Svc_dbepp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-08 20:51:14 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-08 20:51:14 +0000
commit696f4ea57845f48d6d979ecd9d66bb22bd9f738d (patch)
treec32ac05d363bff47320c1b204561b966aa1c81fd /plugins/Svc_dbepp
parent3b396a2da6b0b8e0f4d2c051aca133772d317820 (diff)
TopToolbar usage fixed everywhere
git-svn-id: http://svn.miranda-ng.org/main/trunk@861 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Svc_dbepp')
-rw-r--r--plugins/Svc_dbepp/main.cpp15
1 files changed, 4 insertions, 11 deletions
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;
}