From f1681003035365b57acbc48327efa10b5e4186ac Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 18 Jul 2012 08:43:04 +0000 Subject: Console: fixed menu item creation (one morer place) fixed service of toptoolbar icon git-svn-id: http://svn.miranda-ng.org/main/trunk@1012 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Console/src/Console.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Console') diff --git a/plugins/Console/src/Console.cpp b/plugins/Console/src/Console.cpp index 78510f64a6..8db517cd42 100644 --- a/plugins/Console/src/Console.cpp +++ b/plugins/Console/src/Console.cpp @@ -158,7 +158,7 @@ static int OnTTBLoaded(WPARAM wParam,LPARAM lParam) ttbb.hIconHandleDn = Skin_AddIcon(&sid); ttbb.dwFlags = (state ? TTBBF_PUSHED : 0) | TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP; - ttbb.pszService = "Console/Hide"; + ttbb.pszService = (IsWindowVisible(hwndConsole)) ? "Console/Hide" : "Console/Show"; ttbb.name = LPGEN("Show/Hide Console"); ttbb.pszTooltipDn = LPGEN("Hide Console"); ttbb.pszTooltipUp = LPGEN("Show Console"); @@ -205,7 +205,7 @@ static void ShowConsole(int show) CLISTMENUITEM mi = {0}; mi.cbSize = sizeof(mi); - mi.ptszName=(show)?TranslateT("Hide Console"):TranslateT("Show Console"); + mi.ptszName = (show) ? _T("Hide Console") : _T("Show Console"); mi.flags = CMIM_NAME | CMIF_TCHAR; CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hMenu, (LPARAM)&mi); } -- cgit v1.2.3