aboutsummaryrefslogtreecommitdiff
path: root/c/listview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/listview.cpp')
-rw-r--r--c/listview.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/c/listview.cpp b/c/listview.cpp
index f38b952..cce1461 100644
--- a/c/listview.cpp
+++ b/c/listview.cpp
@@ -11,8 +11,7 @@ static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
ListView::ListView(HMENU hMenu, DWORD dwStyle)
{
- if (dwStyle & LVS_NOCOLUMNHEADER)
- m_bHeader = 0;
+ m_bHeader = !(dwStyle & LVS_NOCOLUMNHEADER);
m_hWnd = CreateWindowEx(
WS_EX_CLIENTEDGE,