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.
Modified: trunk/reactos/lib/user32/controls/combo.c
_____
Modified: trunk/reactos/lib/user32/controls/combo.c
--- trunk/reactos/lib/user32/controls/combo.c 2006-01-07 05:11:32 UTC
(rev 20646)
+++ trunk/reactos/lib/user32/controls/combo.c 2006-01-07 05:23:59 UTC
(rev 20647)
@@ -29,7 +29,6 @@
* TODO:
* - ComboBox_[GS]etMinVisible()
* - CB_GETMINVISIBLE, CB_SETMINVISIBLE
- * - CB_LIMITTEXT
* - CB_SETTOPINDEX
*/
@@ -2315,7 +2314,9 @@
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",
Show replies by date