Limit text in the edit field of a combo box

Raimonds Praude raimonds.praude at sets.lv
Fri Jan 6 09:00:17 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: combo.c
===================================================================
RCS file: /data/cvs/Wine/wine/dlls/user/combo.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 combo.c
--- combo.c	27 Dec 2005 15:29:31 -0000	1.1.1.1
+++ combo.c	6 Jan 2006 14:16:06 -0000
@@ -2299,6 +2299,11 @@
 		return  (lphc->wState & CBF_EUI) ? TRUE : FALSE;
 	case CB_GETCOMBOBOXINFO:
 		return COMBO_GetComboBoxInfo(lphc, (COMBOBOXINFO *)lParam);
+    /* XSETRPR 04.01.2006 Text limit processing */
+    case CB_LIMITTEXT:
+        if( lphc->wState & CBF_EDIT )
+            return SendMessageW(lphc->hWndEdit, EM_LIMITTEXT, wParam,
lParam);
+    /* END XSETRPR */
 	default:
 		if (message >= WM_USER)
 		    WARN("unknown msg WM_USER+%04x wp=%04x lp=%08lx\n",





More information about the wine-patches mailing list