summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/tabctrl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src/tabctrl.cpp')
-rw-r--r--plugins/TabSRMM/src/tabctrl.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/plugins/TabSRMM/src/tabctrl.cpp b/plugins/TabSRMM/src/tabctrl.cpp
index b57e66b3f1..f42d2c4d6a 100644
--- a/plugins/TabSRMM/src/tabctrl.cpp
+++ b/plugins/TabSRMM/src/tabctrl.cpp
@@ -29,7 +29,7 @@
#include "stdafx.h"
-static WNDPROC OldTabControlClassProc;
+static WNDPROC OldTabControlClassProc;
#define FIXED_TAB_SIZE 100
@@ -940,23 +940,23 @@ static LRESULT CALLBACK TabControlSubclassProc(HWND hwnd, UINT msg, WPARAM wPara
switch (msg) {
case WM_NCCREATE:
- {
- WNDCLASSEX wcl = { 0 };
- wcl.cbSize = sizeof(wcl);
- GetClassInfoEx(g_hInst, L"SysTabControl32", &wcl);
- OldTabControlClassProc = wcl.lpfnWndProc;
-
- tabdat = (TabControlData*)mir_calloc(sizeof(TabControlData));
- SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR)tabdat);
- tabdat->hwnd = hwnd;
- tabdat->cx = GetSystemMetrics(SM_CXSMICON);
- tabdat->cy = GetSystemMetrics(SM_CYSMICON);
- tabdat->fTipActive = FALSE;
- tabdat->iHoveredTabIndex = -1;
- tabdat->iHoveredCloseIcon = -1;
- SendMessage(hwnd, EM_THEMECHANGED, 0, 0);
- }
- return TRUE;
+ {
+ WNDCLASSEX wcl = { 0 };
+ wcl.cbSize = sizeof(wcl);
+ GetClassInfoEx(g_hInst, L"SysTabControl32", &wcl);
+ OldTabControlClassProc = wcl.lpfnWndProc;
+
+ tabdat = (TabControlData*)mir_calloc(sizeof(TabControlData));
+ SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR)tabdat);
+ tabdat->hwnd = hwnd;
+ tabdat->cx = GetSystemMetrics(SM_CXSMICON);
+ tabdat->cy = GetSystemMetrics(SM_CYSMICON);
+ tabdat->fTipActive = FALSE;
+ tabdat->iHoveredTabIndex = -1;
+ tabdat->iHoveredCloseIcon = -1;
+ SendMessage(hwnd, EM_THEMECHANGED, 0, 0);
+ }
+ return TRUE;
case EM_THEMECHANGED:
tabdat->m_xpad = M.GetByte("x-pad", 3);