summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clui.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-07-30 10:58:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-07-30 10:58:39 +0300
commit16155a8556b171a8b7a9ff6f9ed23bd473b70107 (patch)
tree60e3bd9a6c56fed77f53ba59f1221c9d5ca1cf61 /plugins/Clist_modern/src/modern_clui.cpp
parent1b17214fcaa3e3fa2d60969f0ea314ba4f1f26c6 (diff)
minor code cleaning
Diffstat (limited to 'plugins/Clist_modern/src/modern_clui.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_clui.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/Clist_modern/src/modern_clui.cpp b/plugins/Clist_modern/src/modern_clui.cpp
index 62cde0a7fb..0fc8769e16 100644
--- a/plugins/Clist_modern/src/modern_clui.cpp
+++ b/plugins/Clist_modern/src/modern_clui.cpp
@@ -2146,11 +2146,9 @@ LRESULT CLUI::OnNcHitTest(UINT, WPARAM wParam, LPARAM lParam)
{
LRESULT result = DefWindowProc(m_hWnd, WM_NCHITTEST, wParam, lParam);
- if ((g_CluiData.fAutoSize) && (result == HTSIZE || result == HTTOP ||
- result == HTTOPLEFT || result == HTTOPRIGHT ||
- result == HTBOTTOM || result == HTBOTTOMRIGHT ||
- result == HTBOTTOMLEFT))
- return HTCLIENT;
+ if (g_CluiData.fAutoSize)
+ if (result == HTSIZE || result == HTTOP || result == HTTOPLEFT || result == HTTOPRIGHT || result == HTBOTTOM || result == HTBOTTOMRIGHT || result == HTBOTTOMLEFT)
+ return HTCLIENT;
if (result == HTMENU) {
POINT pt = UNPACK_POINT(lParam);