summaryrefslogtreecommitdiff
path: root/plugins/Scriver
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-06-14 17:30:55 +0000
committerRobert Pösel <robyer@seznam.cz>2014-06-14 17:30:55 +0000
commit3b84c05daa208192d55d74c0f37d2bfabfa5a3b1 (patch)
treee2784decac16fd21336882a13d674546310a3d25 /plugins/Scriver
parent258d7bfb5327f30de316ecd893d0c5f0f93e0fd3 (diff)
Ability to set also statusbar icon with MS_MSG_SETSTATUSTEXT service
git-svn-id: http://svn.miranda-ng.org/main/trunk@9479 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver')
-rw-r--r--plugins/Scriver/src/msgs.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp
index 8bc0593254..81d0a5ecc5 100644
--- a/plugins/Scriver/src/msgs.cpp
+++ b/plugins/Scriver/src/msgs.cpp
@@ -327,6 +327,13 @@ static INT_PTR GetWindowData(WPARAM wParam, LPARAM lParam)
static INT_PTR SetStatusText(WPARAM wParam, LPARAM lParam)
{
+ StatusTextData *st = (StatusTextData*)lParam;
+ if (st == NULL)
+ return 1;
+
+ if (st->cbSize != sizeof(StatusTextData))
+ return 1;
+
HWND hwnd = WindowList_Find(g_dat.hMessageWindowList, wParam);
if (hwnd == NULL)
hwnd = SM_FindWindowByContact(wParam);
@@ -337,7 +344,8 @@ static INT_PTR SetStatusText(WPARAM wParam, LPARAM lParam)
if (dat == NULL || dat->parent == NULL)
return 1;
- SendMessage(dat->parent->hwndStatus, SB_SETTEXT, 0, lParam);
+ SendMessage(dat->parent->hwndStatus, SB_SETICON, 0, (LPARAM)st->hIcon);
+ SendMessage(dat->parent->hwndStatus, SB_SETTEXT, 0, (LPARAM)st->tszText);
return 0;
}