When moving the focus to the edit field of a combo box, the content
is not selected
Raimonds Praude
raimonds.praude at sets.lv
Fri Jan 13 08:59:33 CST 2006
When moving the focus to the edit field of a combo box (e.g., by tabbing to
it, or changing the focus to it programmatically), the content of the edit
field is not selected.
Selection message sending added into WM_SETFOCUS message processing
of a combo box.
Index: dlls/user/combo.c
===================================================================
RCS file: /home/wine/wine/dlls/user/combo.c,v
retrieving revision 1.18
diff -u -r1.18 combo.c
--- dlls/user/combo.c 9 Jan 2006 19:57:08 -0000 1.18
+++ dlls/user/combo.c 13 Jan 2006 14:24:47 -0000
@@ -1947,8 +1947,11 @@
case WM_GETFONT:
return (LRESULT)lphc->hFont;
case WM_SETFOCUS:
- if( lphc->wState & CBF_EDIT )
- SetFocus( lphc->hWndEdit );
+ if( lphc->wState & CBF_EDIT )
+ {
+ SendMessageW( lphc->hWndEdit, EM_SETSEL, 0, -1 );
+ SetFocus( lphc->hWndEdit );
+ }
else
COMBO_SetFocus( lphc );
return TRUE;
More information about the wine-patches
mailing list