From 0948993ec9e08e170d1d22f2c7176b00bd987103 Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Tue, 14 Apr 2020 16:02:05 +0200 Subject: Make notebook bg gradient work. Anti-flicker work throughout the codebase. --- alf/alflabel.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'alf/alflabel.cpp') diff --git a/alf/alflabel.cpp b/alf/alflabel.cpp index 56e53d2..422a8dc 100644 --- a/alf/alflabel.cpp +++ b/alf/alflabel.cpp @@ -81,6 +81,8 @@ ALF__LabelWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) return (LRESULT)priv->font; } else if (uMsg == WM_UPDATEUISTATE) { InvalidateRect(hwnd, NULL, TRUE); + } else if (uMsg == WM_ERASEBKGND) { + return 1; // do it in WM_PAINT } else if (uMsg == WM_PAINT) { PAINTSTRUCT ps; HDC hdc = BeginPaint(hwnd, &ps); -- cgit v1.2.3