summaryrefslogtreecommitdiff
path: root/alf/alfbutton.cpp
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2020-04-16 13:12:32 +0200
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2020-04-16 13:12:32 +0200
commit5cbb664bd49cd2b9c035ccfc3024aa436d28c36c (patch)
treee7f83c28b89b8597d38a6b5664ba2ff0afee852e /alf/alfbutton.cpp
parentfc7b721e12b6a07cb2b6566c196b9a6c4265c2af (diff)
layout: invalidate and recalculate, automatically
Diffstat (limited to 'alf/alfbutton.cpp')
-rw-r--r--alf/alfbutton.cpp4
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);