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/alfbutton.cpp | |
| parent | 29393896e21cab201646352cce017992cf0b2ddb (diff) | |
Make notebook bg gradient work. Anti-flicker work throughout the codebase.
Diffstat (limited to 'alf/alfbutton.cpp')
| -rw-r--r-- | alf/alfbutton.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/alf/alfbutton.cpp b/alf/alfbutton.cpp index fb8d1c3..ce87f15 100644 --- a/alf/alfbutton.cpp +++ b/alf/alfbutton.cpp @@ -178,6 +178,8 @@ ALF__Button_Render3x(HWND hwnd, ALFButtonPriv *priv, LPDRAWITEMSTRUCT dis) { RECT r = dis->rcItem; + ALF_Compat_DrawThemeParentBackground(hwnd, dis->hDC, &r); + int textlen = GetWindowTextLength(hwnd); TCHAR *textbuf = ALF_New(TCHAR, textlen + 1); GetWindowText(hwnd, textbuf, textlen+1); @@ -473,6 +475,8 @@ ALF__ButtonSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT ALF_Compat_CloseThemeData(priv->hTheme); ALF_Free(priv); ALF_Compat_RemoveWindowSubclass(hwnd, ALF__ButtonSubclassProc, 0); + } else if (uMsg == WM_ERASEBKGND) { + return TRUE; } return ALF_Compat_DefSubclassProc(hwnd, uMsg, wParam, lParam); |
