summaryrefslogtreecommitdiff
path: root/alf/alfbutton.cpp
diff options
context:
space:
mode:
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);