From 3b84c05daa208192d55d74c0f37d2bfabfa5a3b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sat, 14 Jun 2014 17:30:55 +0000 Subject: 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 --- src/core/stdmsg/src/msgs.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/stdmsg/src/msgs.cpp b/src/core/stdmsg/src/msgs.cpp index 24e0b2da8b..a4f660f131 100644 --- a/src/core/stdmsg/src/msgs.cpp +++ b/src/core/stdmsg/src/msgs.cpp @@ -343,6 +343,13 @@ static INT_PTR GetWindowClass(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) return 1; @@ -351,7 +358,8 @@ static INT_PTR SetStatusText(WPARAM wParam, LPARAM lParam) if (dat == NULL) return 1; - SendMessage(dat->hwndStatus, SB_SETTEXT, 0, lParam); + SendMessage(dat->hwndStatus, SB_SETICON, 0, (LPARAM)st->hIcon); + SendMessage(dat->hwndStatus, SB_SETTEXT, 0, (LPARAM)st->tszText); return 0; } -- cgit v1.2.3