Raimonds Praude : user32: Limit text in the edit field of a combo box.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jan 6 14:49:32 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 860d682c2b624aaa41dcc8544883caa326a26a31
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=860d682c2b624aaa41dcc8544883caa326a26a31

Author: Raimonds Praude <raimonds.praude at sets.lv>
Date:   Fri Jan  6 21:16:52 2006 +0100

user32: Limit text in the edit field of a combo box.

---

 dlls/user/combo.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/user/combo.c b/dlls/user/combo.c
index 3deb754..89d356b 100644
--- a/dlls/user/combo.c
+++ b/dlls/user/combo.c
@@ -2299,6 +2299,9 @@ static LRESULT ComboWndProc_common( HWND
 		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-cvs mailing list