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