diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-15 20:23:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-15 20:23:12 +0300 |
commit | d1bce64c343d78f4ca06406be784ac3669629708 (patch) | |
tree | 28cf15b832843d3a9f3acceb1c1ff91ec9957588 /plugins/TabSRMM/src/container.cpp | |
parent | 2c49a47dd937b34dc7f3cef22dca5aa21ccf81be (diff) |
fixes #753 (broken tabs dragging)
Diffstat (limited to 'plugins/TabSRMM/src/container.cpp')
-rw-r--r-- | plugins/TabSRMM/src/container.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp index 3a86d7910c..da83b48369 100644 --- a/plugins/TabSRMM/src/container.cpp +++ b/plugins/TabSRMM/src/container.cpp @@ -43,11 +43,12 @@ static bool fForceOverlayIcons = false; void TContainerData::UpdateTabs()
{
- int nTabs = TabCtrl_GetItemCount(hwnd);
+ HWND hwndTab = GetDlgItem(hwnd, IDC_MSGTABS);
+ int nTabs = TabCtrl_GetItemCount(hwndTab);
for (int i = 0; i < nTabs; i++) {
TCITEM tci;
tci.mask = TCIF_PARAM;
- if (!TabCtrl_GetItem(hwnd, i, &tci))
+ if (!TabCtrl_GetItem(hwndTab, i, &tci))
continue;
CTabBaseDlg *dat = (CTabBaseDlg*)GetWindowLongPtr((HWND)tci.lParam, GWLP_USERDATA);
|