From 189147d4c462cc8fc2f94ca82a69b9c51535be2f Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sat, 7 Jan 2006 05:23:59 +0000 Subject: [PATCH] Patch by Raimonds Praude raimonds.praude at sets.lv Could not set the text limit for combo box. An application sent CB_LIMITTEXT text message, but it was not being processed. Now it is possible to set the text limit, 5 or 8 symbols, for instance. CB_LIMITTEXT message processing was added into ComboWndProc_common function in combo.c file. svn path=/trunk/; revision=20647 --- reactos/lib/user32/controls/combo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/lib/user32/controls/combo.c b/reactos/lib/user32/controls/combo.c index c0fc58354d1..8372b6a0a9e 100644 --- a/reactos/lib/user32/controls/combo.c +++ b/reactos/lib/user32/controls/combo.c @@ -29,7 +29,6 @@ * TODO: * - ComboBox_[GS]etMinVisible() * - CB_GETMINVISIBLE, CB_SETMINVISIBLE - * - CB_LIMITTEXT * - CB_SETTOPINDEX */ @@ -2315,7 +2314,9 @@ static LRESULT ComboWndProc_common( HWND hwnd, UINT message, return (lphc->wState & CBF_EUI) ? TRUE : FALSE; case CB_GETCOMBOBOXINFO: return COMBO_GetComboBoxInfo(lphc, (COMBOBOXINFO *)lParam); - + case CB_LIMITTEXT: + if( lphc->wState & CBF_EDIT ) + return SendMessageW(lphc->hWndEdit, EM_LIMITTEXT, wParam, lParam); default: if (message >= WM_USER) WARN("unknown msg WM_USER+%04x wp=%04x lp=%08lx\n",