summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgs.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-06-17 21:30:32 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-06-17 21:30:32 +0300
commit5d1adca6a83289d3dcc23bc0af82193da69d9d96 (patch)
tree8ee7d5758389c54a02a5e1d6725d1b9b5cd70364 /plugins/TabSRMM/src/msgs.cpp
parentee8fcfa82fa32a1b9a9a8123bf0e220c06779c0c (diff)
GetTabWindow applied to all another places
Diffstat (limited to 'plugins/TabSRMM/src/msgs.cpp')
-rw-r--r--plugins/TabSRMM/src/msgs.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp
index 2f659e5233..ac2a69d626 100644
--- a/plugins/TabSRMM/src/msgs.cpp
+++ b/plugins/TabSRMM/src/msgs.cpp
@@ -617,11 +617,8 @@ HWND TSAPI CreateNewTabForContact(TContainerData *pContainer, MCONTACT hContact,
pContainer->iTabIndex = iCount;
if (iCount > 0) {
- TCITEM item = {};
for (int i = iCount - 1; i >= 0; i--) {
- item.mask = TCIF_PARAM;
- TabCtrl_GetItem(hwndTab, i, &item);
- HWND hwnd = (HWND)item.lParam;
+ HWND hwnd = GetTabWindow(hwndTab, i);
CSrmmWindow *dat = (CSrmmWindow*)GetWindowLongPtr(hwnd, GWLP_USERDATA);
if (dat) {
int relPos = M.GetDword(dat->m_hContact, "tabindex", i * 100);