diff options
Diffstat (limited to 'c/layout.cpp')
-rw-r--r-- | c/layout.cpp | 6 |
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); } |