From 547cbe578dcdb5aa5cfdac1cdb327f92bad21219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 26 Jul 2022 19:27:35 +0200 Subject: Remove ANSI compatibility. Even though it is a fun challange in many ways, I think that, realistically, it is probably not worth the complexity. The Prolog backend isn't ANSI-compatible either. --- c/listview.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'c/listview.cpp') 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; } -- cgit v1.2.3