diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-07-18 08:43:04 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-07-18 08:43:04 +0000 |
commit | f1681003035365b57acbc48327efa10b5e4186ac (patch) | |
tree | 63c001f70efe991e757a8dbaa768670a05e6a99b /plugins/Console | |
parent | e4b5dd561c816433fada7105c7e4b89f3e246d60 (diff) |
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
Diffstat (limited to 'plugins/Console')
-rw-r--r-- | plugins/Console/src/Console.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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);
}
|