diff options
| author | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2020-04-16 13:12:32 +0200 |
|---|---|---|
| committer | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2020-04-16 13:12:32 +0200 |
| commit | 5cbb664bd49cd2b9c035ccfc3024aa436d28c36c (patch) | |
| tree | e7f83c28b89b8597d38a6b5664ba2ff0afee852e /alf/alfbutton.cpp | |
| parent | fc7b721e12b6a07cb2b6566c196b9a6c4265c2af (diff) | |
layout: invalidate and recalculate, automatically
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 582a90c..be9a276 100644 --- a/alf/alfbutton.cpp +++ b/alf/alfbutton.cpp @@ -475,6 +475,10 @@ ALF__ButtonSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT ALF_Compat_RemoveWindowSubclass(hwnd, ALF__ButtonSubclassProc, 0); } else if (uMsg == WM_ERASEBKGND) { return TRUE; + } else if (uMsg == WM_SETTEXT) { + ALF_InvalidateLayout(GetParent(hwnd)); + } else if (uMsg == WM_SETFONT) { + ALF_InvalidateLayout(GetParent(hwnd)); } return ALF_Compat_DefSubclassProc(hwnd, uMsg, wParam, lParam); |
