aboutsummaryrefslogtreecommitdiff
path: root/c/layout.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-26 03:17:09 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-26 03:17:09 +0200
commiteb7709d8617bec27349eebb43e8941b3aaaf453e (patch)
tree7c8627586ed18132b0304b779a00d8acc61e7a0d /c/layout.cpp
parenta9a74875dbd5340b6f3ea6d8b6f66a04b360b22a (diff)
downloadEpisodeBrowser-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/layout.cpp')
-rw-r--r--c/layout.cpp6
1 files changed, 3 insertions, 3 deletions
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<LPARAM>(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);
}