diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-26 03:17:09 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-26 03:17:09 +0200 |
commit | eb7709d8617bec27349eebb43e8941b3aaaf453e (patch) | |
tree | 7c8627586ed18132b0304b779a00d8acc61e7a0d /c/listview.cpp | |
parent | a9a74875dbd5340b6f3ea6d8b6f66a04b360b22a (diff) | |
download | EpisodeBrowser-eb7709d8617bec27349eebb43e8941b3aaaf453e.tar.gz |
Use FunctionW names explicitly instead of macros.
It's uglier, but it makes Visual Studio show better tooltips.
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; } |