summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Lishnevsky <elishnevsky@gmail.com>2012-07-25 14:11:30 +0000
committerEugene Lishnevsky <elishnevsky@gmail.com>2012-07-25 14:11:30 +0000
commit50f9d403c35341b0bbc0b026995761e3cefc28d3 (patch)
tree11a368026f565ad2f7084fc78cce626e9a0d4fb5
parent7672e7c8e1c540740a87b9c2f4d625fc498580b5 (diff)
Fix for Toggle Popups button to appear pressed when on and released when off.
git-svn-id: http://svn.miranda-ng.org/main/trunk@1177 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/Popup/src/main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Popup/src/main.cpp b/plugins/Popup/src/main.cpp
index c276dc6364..ea60c4dd7e 100644
--- a/plugins/Popup/src/main.cpp
+++ b/plugins/Popup/src/main.cpp
@@ -208,16 +208,16 @@ static int TTBLoaded(WPARAM wParam,LPARAM lParam)
btn.cbSize = sizeof(btn);
btn.pszService = MENUCOMMAND_SVC;
btn.lParamUp = 1;
- btn.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP;
+ btn.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP | TTBBF_ASPUSHBUTTON;
btn.name = LPGEN("Toggle Popups");
- btn.hIconHandleUp = Skin_GetIconHandle(ICO_TB_POPUP_ON);
- btn.hIconHandleDn = Skin_GetIconHandle(ICO_TB_POPUP_OFF);
- btn.pszTooltipUp = LPGEN("Disable popups");
- btn.pszTooltipDn = LPGEN("Enable popups");
+ btn.hIconHandleUp = Skin_GetIconHandle(ICO_TB_POPUP_OFF);
+ btn.hIconHandleDn = Skin_GetIconHandle(ICO_TB_POPUP_ON);
+ btn.pszTooltipUp = LPGEN("Enable popups");
+ btn.pszTooltipDn = LPGEN("Disable popups");
hTTButton = TopToolbar_AddButton(&btn);
}
- CallService(MS_TTB_SETBUTTONSTATE, (WPARAM)hTTButton, (PopUpOptions.ModuleIsEnabled) ? TTBST_RELEASED : TTBST_PUSHED);
+ CallService(MS_TTB_SETBUTTONSTATE, (WPARAM)hTTButton, (PopUpOptions.ModuleIsEnabled) ? TTBST_PUSHED : TTBST_RELEASED);
return 0;
}