Limit text in the edit field of a combo box
Raimonds Praude
raimonds.praude at sets.lv
Fri Jan 6 11:18:15 CST 2006
*********************
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.
**********************
Index: dlls/user/combo.c
===================================================================
RCS file: /home/wine/wine/dlls/user/combo.c,v
retrieving revision 1.15
diff -u -r1.15 combo.c
--- dlls/user/combo.c 12 Sep 2005 12:20:38 -0000 1.15
+++ dlls/user/combo.c 6 Jan 2006 16:50:42 -0000
@@ -2299,6 +2299,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",
More information about the wine-patches
mailing list