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
This commit is contained in:
James Tabor 2006-01-07 05:23:59 +00:00
parent 84edca3ca6
commit 189147d4c4

View file

@ -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",