aboutsummaryrefslogtreecommitdiff
path: root/c/listview.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-20 20:25:59 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-20 20:25:59 +0200
commit3f842c733568aa9068aa83fad52540eb98f334b1 (patch)
tree398f9f4ac407c96c3cf00755b564fef6b84ea92b /c/listview.cpp
parent0d5736538a98b2c4001c45d073affc6bc0d772e5 (diff)
downloadEpisodeBrowser-3f842c733568aa9068aa83fad52540eb98f334b1.tar.gz
Simplify require, prefer.
Diffstat (limited to 'c/listview.cpp')
-rw-r--r--c/listview.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/listview.cpp b/c/listview.cpp
index 752ebcb..319433a 100644
--- a/c/listview.cpp
+++ b/c/listview.cpp
@@ -13,15 +13,15 @@ ListView::ListView(const HWND hWndParent, const HMENU hMenu, const DWORD dwStyle
{
m_hWndParent = hWndParent;
m_bHeader = !(dwStyle & LVS_NOCOLUMNHEADER);
- hWnd = require<CreateWindowEx>(
+ hWnd = require(CreateWindowEx(
WS_EX_CLIENTEDGE,
WC_LISTVIEW,
TEXT(""),
dwStyle|WS_CHILD|WS_VISIBLE|WS_VSCROLL|WS_TABSTOP|LVS_REPORT|LVS_SHOWSELALWAYS,
0, 0, 0, 0,
- m_hWndParent, hMenu, GetModuleHandle(NULL), this);
+ m_hWndParent, hMenu, GetModuleHandle(NULL), this));
- if (require<SetProp>(hWnd, TEXT("this"), (HANDLE)this))
+ if (require(SetProp(hWnd, TEXT("this"), (HANDLE)this)))
m_prevProc = (WNDPROC)SetWindowLongPtr(hWnd,
GWLP_WNDPROC, (LONG_PTR)::WndProc);