summaryrefslogtreecommitdiff
path: root/alf/alfcombobox.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/alfcombobox.cpp
parentfc7b721e12b6a07cb2b6566c196b9a6c4265c2af (diff)
layout: invalidate and recalculate, automatically
Diffstat (limited to 'alf/alfcombobox.cpp')
-rw-r--r--alf/alfcombobox.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/alf/alfcombobox.cpp b/alf/alfcombobox.cpp
index 097e2a4..288e3a8 100644
--- a/alf/alfcombobox.cpp
+++ b/alf/alfcombobox.cpp
@@ -74,6 +74,7 @@ ALF__ComboWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
}
if (uMsg == WM_SETTEXT && hwndChild) {
SetWindowText(hwndChild, (TCHAR*)lParam);
+ ALF_InvalidateLayout(GetParent(hwnd));
}
if (uMsg == WM_GETTEXTLENGTH && hwndChild) {
return (LRESULT)GetWindowTextLength(hwndChild);
@@ -88,6 +89,8 @@ ALF__ComboWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
if (h)
SendMessage(hwndChild, CB_SETITEMHEIGHT, (WPARAM)0, h);
+ ALF_InvalidateLayout(GetParent(hwnd));
+
return 0;
}
if (uMsg == WM_GETFONT && hwndChild) {