summaryrefslogtreecommitdiff
path: root/alf/alfpanel.cpp
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2020-04-16 11:24:43 +0200
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2020-04-16 11:24:43 +0200
commitd56bd75ee5bc28daddb429b1fb850854970bc5f5 (patch)
treecb1061c483d50b3627d375062ad5195aefa9ed19 /alf/alfpanel.cpp
parent090203fff7a05929816b49b19ea24959e2f518e5 (diff)
font handling change: allow controls to inherit fonts
also do it automatically when adding widget to layout, no more calling applyfonts manually
Diffstat (limited to 'alf/alfpanel.cpp')
-rw-r--r--alf/alfpanel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alf/alfpanel.cpp b/alf/alfpanel.cpp
index ce640a2..076bd9f 100644
--- a/alf/alfpanel.cpp
+++ b/alf/alfpanel.cpp
@@ -75,7 +75,7 @@ ALF__PanelWindowProc(HWND window, UINT msg, WPARAM wparam, LPARAM lparam)
if (LOWORD(lparam) != 0)
InvalidateRect(window, NULL, TRUE);
- return 0;
+ // fallthrough to layout, will propagate font to children
}
if (msg == WM_GETFONT) {
@@ -167,7 +167,7 @@ ALF_AddPanel(HWND parent, WORD id, UINT x, UINT y)
p.y = y;
p.width = 0;
p.height = 0;
- p.flags = ALF_QUERYSIZE | ALF_SENDAPPLYFONTS | ALF_MESSAGEFONT;
+ p.flags = ALF_QUERYSIZE | ALF_INHERITFONT;
ALF_AddWidgetEx(parent, &p);