summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgdlgutils.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-06-14 17:31:23 +0000
committerRobert Pösel <robyer@seznam.cz>2014-06-14 17:31:23 +0000
commit469640071ddd9581b45f70f3dc2b9c4c2cc31199 (patch)
tree3a5356d0471bbd160e7e37aaf20f3ab376cb902d /plugins/TabSRMM/src/msgdlgutils.cpp
parentc3a49bd95dce1276b4b02e0c236146f2184e31cc (diff)
MS_MSG_SETSTATUSTEXT improvements
- clear statusbar by using NULL as lParam - TabSRMM: remember custom statusbar text when switching between tabs git-svn-id: http://svn.miranda-ng.org/main/trunk@9481 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/msgdlgutils.cpp')
-rw-r--r--plugins/TabSRMM/src/msgdlgutils.cpp20
1 files changed, 14 insertions, 6 deletions
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp
index b26a8f977a..7a82c97bcf 100644
--- a/plugins/TabSRMM/src/msgdlgutils.cpp
+++ b/plugins/TabSRMM/src/msgdlgutils.cpp
@@ -493,20 +493,28 @@ void TSAPI UpdateStatusBar(const TWindowData *dat)
{
if (dat && dat->pContainer->hwndStatus && dat->pContainer->hwndActive == dat->hwnd) {
if (dat->bType == SESSIONTYPE_IM) {
- /*if (dat->szStatusBarCustom[0]) {
- SendMessage(dat->pContainer->hwndStatus, SB_SETICON, 0, 0);
- SendMessage(dat->pContainer->hwndStatus, SB_SETTEXT, 0, (LPARAM)dat->szStatusBarCustom);
- } else*/ if (dat->szStatusBar[0]) {
+ if (dat->szStatusBar[0]) {
SendMessage(dat->pContainer->hwndStatus, SB_SETICON, 0, (LPARAM)PluginConfig.g_buttonBarIcons[ICON_DEFAULT_TYPING]);
SendMessage(dat->pContainer->hwndStatus, SB_SETTEXT, 0, (LPARAM)dat->szStatusBar);
}
+ else if (dat->sbCustom) {
+ SendMessage(dat->pContainer->hwndStatus, SB_SETICON, 0, (LPARAM)dat->sbCustom->hIcon);
+ SendMessage(dat->pContainer->hwndStatus, SB_SETTEXT, 0, (LPARAM)dat->sbCustom->tszText);
+ }
else {
SendMessage(dat->pContainer->hwndStatus, SB_SETICON, 0, 0);
DM_UpdateLastMessage(dat);
}
}
- else
- SendMessage(dat->pContainer->hwndStatus, SB_SETICON, 0, 0);
+ else {
+ if (dat->sbCustom) {
+ SendMessage(dat->pContainer->hwndStatus, SB_SETICON, 0, (LPARAM)dat->sbCustom->hIcon);
+ SendMessage(dat->pContainer->hwndStatus, SB_SETTEXT, 0, (LPARAM)dat->sbCustom->tszText);
+ }
+ else {
+ SendMessage(dat->pContainer->hwndStatus, SB_SETICON, 0, 0);
+ }
+ }
UpdateReadChars(dat);
InvalidateRect(dat->pContainer->hwndStatus, NULL, TRUE);
SendMessage(dat->pContainer->hwndStatus, WM_USER + 101, 0, (LPARAM)dat);