aboutsummaryrefslogtreecommitdiff
path: root/c/listview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/listview.cpp')
-rw-r--r--c/listview.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/c/listview.cpp b/c/listview.cpp
index 622ff87..62dfba8 100644
--- a/c/listview.cpp
+++ b/c/listview.cpp
@@ -16,12 +16,12 @@ ListView::ListView(const HWND hWndParent, const HMENU hMenu, const DWORD dwStyle
hWnd = require(CreateWindowEx(
WS_EX_CLIENTEDGE,
WC_LISTVIEW,
- TEXT(""),
+ L"",
dwStyle|WS_CHILD|WS_VISIBLE|WS_VSCROLL|WS_TABSTOP|LVS_REPORT|LVS_SHOWSELALWAYS,
0, 0, 0, 0,
m_hWndParent, hMenu, GetModuleHandle(NULL), this));
- if (require(SetProp(hWnd, TEXT("this"), (HANDLE)this)))
+ if (require(SetProp(hWnd, L"this", (HANDLE)this)))
m_prevProc = (WNDPROC)SetWindowLongPtr(hWnd,
GWLP_WNDPROC, (LONG_PTR)::WndProc);
@@ -87,10 +87,10 @@ LRESULT CALLBACK ListView::WndProc(const HWND hWnd, const UINT uMsg,
LRESULT CALLBACK WndProc(const HWND hWnd, const UINT uMsg, const WPARAM wParam,
const LPARAM lParam)
{
- ListView* const pLv = (ListView*)GetProp(hWnd, TEXT("this"));
+ ListView* const pLv = (ListView*)GetProp(hWnd, L"this");
if (uMsg == WM_DESTROY)
- RemoveProp(hWnd, TEXT("this"));
+ RemoveProp(hWnd, L"this");
return pLv? pLv->WndProc(hWnd, uMsg, wParam, lParam): FALSE;
}