diff options
| author | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2020-04-14 16:02:05 +0200 |
|---|---|---|
| committer | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2020-04-14 16:02:05 +0200 |
| commit | 0948993ec9e08e170d1d22f2c7176b00bd987103 (patch) | |
| tree | 1f707d95bfbbef467dbce2ecc0b3e9c034c9cd4c /alf/alflabel.cpp | |
| parent | 29393896e21cab201646352cce017992cf0b2ddb (diff) | |
Make notebook bg gradient work. Anti-flicker work throughout the codebase.
Diffstat (limited to 'alf/alflabel.cpp')
| -rw-r--r-- | alf/alflabel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); |
