summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/controls.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-11-04 14:36:44 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-11-04 14:36:44 +0300
commitd1a660dcebdaeca43201d695a7d22454b620521e (patch)
tree3c8202436802837725ee17d1ff825fae1ed0aa6a /plugins/TabSRMM/src/controls.cpp
parent8e8c80d9c99db7a0bf8272ad468fc7d5ea06dd8f (diff)
tabSRMM:
- massive code cleaning; - fixes #2099 (TabSRMM: add tab scrolling by mouse wheel); - version bump
Diffstat (limited to 'plugins/TabSRMM/src/controls.cpp')
-rw-r--r--plugins/TabSRMM/src/controls.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/controls.cpp b/plugins/TabSRMM/src/controls.cpp
index fffb0411e7..76b47c9dcf 100644
--- a/plugins/TabSRMM/src/controls.cpp
+++ b/plugins/TabSRMM/src/controls.cpp
@@ -48,13 +48,13 @@ static int resetLP(WPARAM, LPARAM, LPARAM obj)
return 0;
}
-CMenuBar::CMenuBar(HWND hwndParent, const TContainerData *pContainer)
+CMenuBar::CMenuBar(const TContainerData *pContainer)
{
m_pContainer = const_cast<TContainerData *>(pContainer);
if (m_MimIcon == nullptr) {
- HDC hdc = ::GetDC(m_pContainer->m_hwnd);
- HANDLE hIcon = Skin_GetIconHandle(SKINICON_OTHER_MIRANDA);
+ HDC hdc = ::GetDC(m_pContainer->m_hwnd);
+ HANDLE hIcon = Skin_GetIconHandle(SKINICON_OTHER_MIRANDA);
HDC hdcTemp = ::CreateCompatibleDC(hdc);
@@ -71,7 +71,7 @@ CMenuBar::CMenuBar(HWND hwndParent, const TContainerData *pContainer)
m_MimIconRefCount++;
m_hwndToolbar = ::CreateWindowEx(WS_EX_TOOLWINDOW, TOOLBARCLASSNAME, nullptr, WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_VISIBLE | TBSTYLE_FLAT | TBSTYLE_TRANSPARENT | TBSTYLE_LIST |/*CCS_NOPARENTALIGN|*/CCS_NODIVIDER | CCS_TOP,
- 0, 0, 0, 0, hwndParent, nullptr, g_plugin.getInst(), nullptr);
+ 0, 0, 0, 0, m_pContainer->m_hwnd, nullptr, g_plugin.getInst(), nullptr);
::SendMessage(m_hwndToolbar, TB_BUTTONSTRUCTSIZE, (WPARAM)sizeof(TBBUTTON), 0);