From eb7709d8617bec27349eebb43e8941b3aaaf453e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 26 Aug 2022 03:17:09 +0200 Subject: Use FunctionW names explicitly instead of macros. It's uglier, but it makes Visual Studio show better tooltips. --- c/layout.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'c/layout.cpp') diff --git a/c/layout.cpp b/c/layout.cpp index 36edf32..23ee490 100644 --- a/c/layout.cpp +++ b/c/layout.cpp @@ -19,7 +19,7 @@ void UpdateLayout(int w, int h) else Require(GetClientRect(g_hWnd, &rc)); Require(GetRelativeRect(g_hWndStatus, &rrStatus)); - SendMessage(g_hWnd, WM_SETREDRAW, FALSE, 0); + SendMessageW(g_hWnd, WM_SETREDRAW, FALSE, 0); /* Resize list views. */ const long pad = EBIsThemeActive()? Dpi(6): 0; /* Add padding in modern themes. */ @@ -31,10 +31,10 @@ void UpdateLayout(int w, int h) /* Resize status bar parts. */ const int aParts[] = {rc.right-Dpi(55), rc.right}; - SendMessage(g_hWndStatus, SB_SETPARTS, + SendMessageW(g_hWndStatus, SB_SETPARTS, sizeof(aParts), reinterpret_cast(aParts)); - SendMessage(g_hWnd, WM_SETREDRAW, TRUE, 0); + SendMessageW(g_hWnd, WM_SETREDRAW, TRUE, 0); RedrawWindow(g_hWnd, nullptr, nullptr, RDW_ERASE|RDW_FRAME|RDW_INVALIDATE|RDW_ALLCHILDREN); } -- cgit v1.2.3