summaryrefslogtreecommitdiff
path: root/plugins/Console
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-18 14:40:59 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-18 14:40:59 +0000
commitbeed04fd78481c085df5f0342ce546b3fdd2e544 (patch)
tree90575f2478068a5f317728fbc2f1a82884d38356 /plugins/Console
parent98ecab59cd29c9b45026d61aa98dcfb87ef5bd2d (diff)
yet another TTB-dependent changes
git-svn-id: http://svn.miranda-ng.org/main/trunk@473 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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")));