From cda582b4409add7b8fd8ff29fef9debb90267c88 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 13 Aug 2013 13:56:59 +0000 Subject: missing aero initialization git-svn-id: http://svn.miranda-ng.org/main/trunk@5667 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/TSButton.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'plugins/TabSRMM/src/TSButton.cpp') diff --git a/plugins/TabSRMM/src/TSButton.cpp b/plugins/TabSRMM/src/TSButton.cpp index 22b4da3127..524644406d 100644 --- a/plugins/TabSRMM/src/TSButton.cpp +++ b/plugins/TabSRMM/src/TSButton.cpp @@ -500,7 +500,13 @@ static LRESULT CALLBACK TSButtonWndProc(HWND hwndDlg, UINT msg, WPARAM wParam, return 0; } - return mir_callNextSubclass(hwndDlg, TSButtonWndProc, msg, wParam, lParam); + LRESULT res = mir_callNextSubclass(hwndDlg, TSButtonWndProc, msg, wParam, lParam); + + if (msg == WM_NCCREATE) + if (M.isVSAPIState()) + bct->hThemeToolbar = (M.isAero() || IsWinVerVistaPlus()) ? CMimAPI::m_pfnOpenThemeData(bct->hwnd, L"MENU") : CMimAPI::m_pfnOpenThemeData(bct->hwnd, L"TOOLBAR"); + + return res; } int TSAPI UnloadTSButtonModule() -- cgit v1.2.3