summaryrefslogtreecommitdiff
path: root/plugins/Console
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Console')
-rw-r--r--plugins/Console/Console.c8
1 files changed, 3 insertions, 5 deletions
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")));