summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-10-24 14:39:48 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-10-24 14:39:48 +0300
commit0a29240af17f3980654c4b8f81efd9e307065f13 (patch)
tree67a1fac04fb56cfb98a8893d714bb7d24074d213 /plugins
parent9b106b591d94c90413e0a9854f06764c320bf6a0 (diff)
warning fix
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TabSRMM/src/container.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp
index 628600a03f..4c155819f7 100644
--- a/plugins/TabSRMM/src/container.cpp
+++ b/plugins/TabSRMM/src/container.cpp
@@ -75,15 +75,14 @@ void TContainerData::CloseTabByMouse(POINT *pt)
void TContainerData::Configure()
{
- DWORD wsold, ws = wsold = GetWindowLongPtr(m_hwnd, GWL_STYLE);
+ DWORD wsold, ws = wsold = GetWindowLong(m_hwnd, GWL_STYLE);
if (!CSkin::m_frameSkins) {
ws = (m_dwFlags & CNT_NOTITLE) ?
((IsWindowVisible(m_hwnd) ? WS_VISIBLE : 0) | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_CLIPCHILDREN | WS_THICKFRAME | (CSkin::m_frameSkins ? WS_SYSMENU : WS_SYSMENU | WS_SIZEBOX)) :
ws | WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN;
+ SetWindowLong(m_hwnd, GWL_STYLE, ws);
}
- SetWindowLongPtr(m_hwnd, GWL_STYLE, ws);
-
m_tBorder = M.GetByte((CSkin::m_skinEnabled ? "S_tborder" : "tborder"), 2);
m_tBorder_outer_left = g_ButtonSet.left + M.GetByte((CSkin::m_skinEnabled ? "S_tborder_outer_left" : "tborder_outer_left"), 2);
m_tBorder_outer_right = g_ButtonSet.right + M.GetByte((CSkin::m_skinEnabled ? "S_tborder_outer_right" : "tborder_outer_right"), 2);
@@ -93,10 +92,10 @@ void TContainerData::Configure()
BOOL fTransAllowed = !CSkin::m_skinEnabled || IsWinVerVistaPlus();
- DWORD exold = GetWindowLongPtr(m_hwnd, GWL_EXSTYLE);
- DWORD ex = (m_dwFlags & CNT_TRANSPARENCY && (!CSkin::m_skinEnabled || fTransAllowed)) ? ex | WS_EX_LAYERED : ex & ~(WS_EX_LAYERED);
+ DWORD exold = GetWindowLong(m_hwnd, GWL_EXSTYLE);
+ DWORD ex = (m_dwFlags & CNT_TRANSPARENCY && (!CSkin::m_skinEnabled || fTransAllowed)) ? (ex | WS_EX_LAYERED) : (ex & ~WS_EX_LAYERED);
+ SetWindowLong(m_hwnd, GWL_EXSTYLE, ex);
- SetWindowLongPtr(m_hwnd, GWL_EXSTYLE, ex);
if (m_dwFlags & CNT_TRANSPARENCY && fTransAllowed) {
DWORD trans = LOWORD(m_pSettings->dwTransparency);
SetLayeredWindowAttributes(m_hwnd, Skin->getColorKey(), (BYTE)trans, (/* m_bSkinned ? LWA_COLORKEY : */ 0) | (m_dwFlags & CNT_TRANSPARENCY ? LWA_ALPHA : 0));
@@ -129,13 +128,13 @@ void TContainerData::Configure()
m_pSideBar->Init();
HWND hwndTab = GetDlgItem(m_hwnd, IDC_MSGTABS);
- ws = wsold = GetWindowLongPtr(hwndTab, GWL_STYLE);
+ ws = wsold = GetWindowLong(hwndTab, GWL_STYLE);
if (m_dwFlags & CNT_TABSBOTTOM)
- ws |= (TCS_BOTTOM);
+ ws |= TCS_BOTTOM;
else
- ws &= ~(TCS_BOTTOM);
+ ws &= ~TCS_BOTTOM;
if ((ws & (TCS_BOTTOM | TCS_MULTILINE)) != (wsold & (TCS_BOTTOM | TCS_MULTILINE))) {
- SetWindowLongPtr(hwndTab, GWL_STYLE, ws);
+ SetWindowLong(hwndTab, GWL_STYLE, ws);
RedrawWindow(hwndTab, nullptr, nullptr, RDW_INVALIDATE);
}