aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2025-03-19 12:16:41 +1100
committerNeil <nyamatongwe@gmail.com>2025-03-19 12:16:41 +1100
commitef7a5121743a207b5f0629614b486c431bb55af6 (patch)
treebe37a96172df6994479abc79a161d8fb355ff4d7 /win32/PlatWin.cxx
parent11679dfe30db5890a183bebe4e2e974c69aad116 (diff)
downloadscintilla-mirror-ef7a5121743a207b5f0629614b486c431bb55af6.tar.gz
Encapsulate WM_PAINT handling.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index 3d34b2d95..9cd792e09 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -4041,9 +4041,7 @@ LRESULT ListBoxX::WndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam
break;
case WM_PAINT: {
- PAINTSTRUCT ps;
- ::BeginPaint(hWnd, &ps);
- ::EndPaint(hWnd, &ps);
+ Painter painter(hWnd);
}
break;