From beed04fd78481c085df5f0342ce546b3fdd2e544 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 18 Jun 2012 14:40:59 +0000 Subject: yet another TTB-dependent changes git-svn-id: http://svn.miranda-ng.org/main/trunk@473 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Console/Console.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins/Console/Console.c') diff --git a/plugins/Console/Console.c b/plugins/Console/Console.c index f6c451b5dd..877dc28c30 100644 --- a/plugins/Console/Console.c +++ b/plugins/Console/Console.c @@ -150,14 +150,12 @@ static int OnTTBLoaded(WPARAM wParam,LPARAM lParam) ttbb.cbSize = sizeof(ttbb); ttbb.hIconUp = LoadIcon(hInst, MAKEINTRESOURCE(IDI_CONSOLE_UP)); ttbb.hIconDn = LoadIcon(hInst, MAKEINTRESOURCE(IDI_CONSOLE_DOWN)); - ttbb.dwFlags=(state?TTBBF_PUSHED:0)|TTBBF_VISIBLE|TTBBF_SHOWTOOLTIP; - ttbb.pszServiceDown = "Console/Show"; - ttbb.pszServiceUp = "Console/Hide"; + ttbb.dwFlags = (state ? TTBBF_PUSHED : 0) | TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP; + ttbb.pszService = "Console/Hide"; ttbb.name = Translate("Show/Hide Console"); hTTBButt = (HANDLE)CallService(MS_TTB_ADDBUTTON, (WPARAM)&ttbb, 0); - if (hTTBButt) - { + if (hTTBButt) { CallService(MS_TTB_SETBUTTONOPTIONS,MAKEWPARAM(TTBO_TIPNAME,hTTBButt), (LPARAM)(state?Translate("Hide Console"):Translate("Show Console"))); -- cgit v1.2.3