aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2025-03-17 13:52:40 +1100
committerNeil <nyamatongwe@gmail.com>2025-03-17 13:52:40 +1100
commitc53c2461ab3ca243a5059132508b8ef6a4e8e968 (patch)
tree8d6a7c9b0c784231ce4ffdcf897b67b8123a27d1
parent113298a9fc4e80cd2f2ab33938d8ef8b1aac8704 (diff)
downloadscintilla-mirror-c53c2461ab3ca243a5059132508b8ef6a4e8e968.tar.gz
Handle setting redraw back on correctly as documented by Microsoft.
Will allow future simplification of logic and optimization.
-rw-r--r--win32/PlatWin.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index c8c0a6945..f7887d8f6 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -3673,8 +3673,9 @@ POINT ListBoxX::MaxTrackSize() const noexcept {
void ListBoxX::SetRedraw(bool on) noexcept {
::SendMessage(lb, WM_SETREDRAW, on, 0);
- if (on)
- ::InvalidateRect(lb, nullptr, TRUE);
+ if (on) {
+ ::RedrawWindow(lb, {}, {}, RDW_ERASE | RDW_FRAME | RDW_INVALIDATE | RDW_ALLCHILDREN);
+ }
}
void ListBoxX::ResizeToCursor() {