diff options
Diffstat (limited to 'c/listview.cpp')
-rw-r--r-- | c/listview.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/c/listview.cpp b/c/listview.cpp index 9ca088c..41f68a7 100644 --- a/c/listview.cpp +++ b/c/listview.cpp @@ -14,7 +14,7 @@ ListView::ListView(const HWND hWndParent, const HMENU hMenu, const DWORD dwStyle extern HFONT g_hfNormal; m_hWndParent = hWndParent; - hWnd = Require(CreateWindowEx( + hWnd = Require(CreateWindowExW( WS_EX_CLIENTEDGE, WC_LISTVIEW, L"", @@ -24,9 +24,9 @@ ListView::ListView(const HWND hWndParent, const HMENU hMenu, const DWORD dwStyle m_proc0 = reinterpret_cast<WNDPROC>(SetWindowLongPtr( hWnd, GWLP_WNDPROC, reinterpret_cast<LONG_PTR>(::WndProc))); - Require(SetProp(hWnd, L"this", reinterpret_cast<HANDLE>(this))); + Require(SetPropW(hWnd, L"this", reinterpret_cast<HANDLE>(this))); ListView_SetExtendedListViewStyle(hWnd, LVS_EX_FULLROWSELECT|LVS_EX_DOUBLEBUFFER); - SendMessage(hWnd, WM_SETFONT, reinterpret_cast<WPARAM>(g_hfNormal), MAKELPARAM(FALSE, 0)); + SendMessageW(hWnd, WM_SETFONT, reinterpret_cast<WPARAM>(g_hfNormal), MAKELPARAM(FALSE, 0)); } int ListView::Height() @@ -56,7 +56,7 @@ void ListView::UpdateTheme(const bool bThemeActive) SetWindowTheme(hWnd, theme, nullptr); /* Hide focus rectangles. */ - SendMessage(hWnd, WM_UPDATEUISTATE, MAKEWPARAM(action, UISF_HIDEFOCUS), 0); + SendMessageW(hWnd, WM_UPDATEUISTATE, MAKEWPARAM(action, UISF_HIDEFOCUS), 0); } LRESULT CALLBACK ListView::WndProc(const HWND hWnd, const UINT uMsg, @@ -87,7 +87,7 @@ LRESULT CALLBACK WndProc(const HWND hWnd, const UINT uMsg, const WPARAM wParam, ListView* const lv = reinterpret_cast<ListView*>(GetProp(hWnd, L"this")); if (uMsg == WM_DESTROY) - RemoveProp(hWnd, L"this"); + RemovePropW(hWnd, L"this"); return lv? lv->WndProc(hWnd, uMsg, wParam, lParam): FALSE; } |