diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-04 18:18:37 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-04 18:19:37 +0200 |
commit | 94119478207034b767c1d0a4fa5d8950f7b07b02 (patch) | |
tree | ce9ffb57a4947855b09c54017f6b2abe3e8af6d3 /c/layout.cpp | |
parent | 1c218db34a3bd4aba5c1c088561b91b02e691fde (diff) | |
download | EpisodeBrowser-94119478207034b767c1d0a4fa5d8950f7b07b02.tar.gz |
Use C++ casts, nullptr.
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); } |