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/alfcombobox.cpp | |
| parent | fc7b721e12b6a07cb2b6566c196b9a6c4265c2af (diff) | |
layout: invalidate and recalculate, automatically
Diffstat (limited to 'alf/alfcombobox.cpp')
| -rw-r--r-- | alf/alfcombobox.cpp | 3 |
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) { |
