diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-18 22:59:17 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-18 22:59:17 +0000 |
commit | d3706e3476a8b53e687b4d30324982b860b98c84 (patch) | |
tree | 4e2c037fd276a556f38139a85533133941cf6cbe /plugins/TabSRMM/src/tabctrl.cpp | |
parent | a1c729f0feb8753cb295d5ba491f2fbfd1d00d97 (diff) |
- wiped out very impressive font reloading on exit;
- all GDI handles now closed
git-svn-id: http://svn.miranda-ng.org/main/trunk@9857 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/tabctrl.cpp')
-rw-r--r-- | plugins/TabSRMM/src/tabctrl.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/TabSRMM/src/tabctrl.cpp b/plugins/TabSRMM/src/tabctrl.cpp index 1d62b934f3..ac9d41bfb4 100644 --- a/plugins/TabSRMM/src/tabctrl.cpp +++ b/plugins/TabSRMM/src/tabctrl.cpp @@ -1348,21 +1348,18 @@ static LRESULT CALLBACK TabControlSubclassProc(HWND hwnd, UINT msg, WPARAM wPara void TSAPI ReloadTabConfig()
{
- NONCLIENTMETRICS nclim;
- int i=0;
-
PluginConfig.tabConfig.m_hPenLight = CreatePen(PS_SOLID, 1, GetSysColor(COLOR_3DHILIGHT));
PluginConfig.tabConfig.m_hPenShadow = CreatePen(PS_SOLID, 1, GetSysColor(COLOR_3DDKSHADOW));
PluginConfig.tabConfig.m_hPenItemShadow = CreatePen(PS_SOLID, 1, GetSysColor(COLOR_3DSHADOW));
+ NONCLIENTMETRICS nclim;
nclim.cbSize = sizeof(nclim);
SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS), &nclim, 0);
PluginConfig.tabConfig.m_hMenuFont = CreateFontIndirect(&nclim.lfMessageFont);
- while (tabcolors[i].szKey != NULL) {
+ for (int i = 0; tabcolors[i].szKey != NULL; i++)
PluginConfig.tabConfig.colors[i] = M.GetDword(CSkin::m_skinEnabled ? tabcolors[i].szSkinnedKey : tabcolors[i].szKey, GetSysColor(tabcolors[i].defclr));
- i++;
- }
+
PluginConfig.tabConfig.m_brushes[0] = CreateSolidBrush(PluginConfig.tabConfig.colors[4]);
PluginConfig.tabConfig.m_brushes[1] = CreateSolidBrush(PluginConfig.tabConfig.colors[5]);
PluginConfig.tabConfig.m_brushes[2] = CreateSolidBrush(PluginConfig.tabConfig.colors[6]);
|