From 9c6e4b571b98d001c4d0e9d7d8ba35e10e0a04d9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 3 Mar 2017 16:16:09 +0300 Subject: GCSessionInfoBase::hwndStatus considered useless --- plugins/TabSRMM/src/controls.cpp | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'plugins/TabSRMM/src/controls.cpp') diff --git a/plugins/TabSRMM/src/controls.cpp b/plugins/TabSRMM/src/controls.cpp index ed30146c8f..c316631617 100644 --- a/plugins/TabSRMM/src/controls.cpp +++ b/plugins/TabSRMM/src/controls.cpp @@ -880,28 +880,28 @@ LONG_PTR CALLBACK StatusBarSubclassProc(HWND hWnd, UINT msg, WPARAM wParam, LPAR } return 0; + case WM_USER + 101: // tell status bar to update the part layout (re-calculate part widths) // needed when an icon is added to or removed from the icon area - case WM_USER + 101: - { - int list_icons = 0; - dat = (CSrmmWindow*)lParam; - if (dat) - while (Srmm_GetNthIcon(dat->m_hContact, list_icons)) - list_icons++; - - SendMessage(hWnd, WM_SIZE, 0, 0); - - RECT rcs; - GetWindowRect(hWnd, &rcs); - - int statwidths[5]; - statwidths[0] = (rcs.right - rcs.left) - (2 * SB_CHAR_WIDTH + 20) - (list_icons * (PluginConfig.m_smcxicon + 2)); - statwidths[1] = (rcs.right - rcs.left) - (10 + (list_icons * (PluginConfig.m_smcxicon + 2))); - statwidths[2] = -1; - SendMessage(hWnd, SB_SETPARTS, 3, (LPARAM)statwidths); - } - return 0; + { + int list_icons = 0; + dat = (CSrmmWindow*)lParam; + if (dat) + while (Srmm_GetNthIcon(dat->m_hContact, list_icons)) + list_icons++; + + SendMessage(hWnd, WM_SIZE, 0, 0); + + RECT rcs; + GetWindowRect(hWnd, &rcs); + + int statwidths[5]; + statwidths[0] = (rcs.right - rcs.left) - (2 * SB_CHAR_WIDTH + 20) - (list_icons * (PluginConfig.m_smcxicon + 2)); + statwidths[1] = (rcs.right - rcs.left) - (10 + (list_icons * (PluginConfig.m_smcxicon + 2))); + statwidths[2] = -1; + SendMessage(hWnd, SB_SETPARTS, 3, (LPARAM)statwidths); + } + return 0; case WM_SETCURSOR: GetCursorPos(&pt); -- cgit v1.2.3