diff options
Diffstat (limited to 'c/layout.cpp')
-rw-r--r-- | c/layout.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/c/layout.cpp b/c/layout.cpp index 5fe5da4..24ad11f 100644 --- a/c/layout.cpp +++ b/c/layout.cpp @@ -31,10 +31,11 @@ void UpdateLayout(int w, int h) /* Resize status bar parts. */ const int aParts[] = {rc.right-Dpi(55), rc.right}; - SendMessage(g_hWndStatus, SB_SETPARTS, (WPARAM)sizeof(aParts), (LPARAM)aParts); + SendMessage(g_hWndStatus, SB_SETPARTS, + reinterpret_cast<WPARAM>(sizeof(aParts)), reinterpret_cast<LPARAM>(aParts)); SendMessage(g_hWnd, WM_SETREDRAW, TRUE, 0); - RedrawWindow(g_hWnd, NULL, NULL, + RedrawWindow(g_hWnd, nullptr, nullptr, RDW_ERASE|RDW_FRAME|RDW_INVALIDATE|RDW_ALLCHILDREN); } @@ -61,7 +62,7 @@ void DlvDragger::Drag(const int, const int y) h = rrDlv.bottom-y; g_dlv->SetHeight(h); UpdateLayout(); - RedrawWindow(g_hWnd, NULL, NULL, + RedrawWindow(g_hWnd, nullptr, nullptr, RDW_ERASE|RDW_FRAME|RDW_INVALIDATE|RDW_ALLCHILDREN|RDW_UPDATENOW); } |