diff options
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); |
