Alexandre Julliard : user32: Added support for WS_EX_RIGHT in the edit control.

Alexandre Julliard julliard at winehq.org
Thu Apr 17 14:43:40 CDT 2008


Module: wine
Branch: master
Commit: f4136deecb50643af02c520fa3f80f2473de61d1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f4136deecb50643af02c520fa3f80f2473de61d1

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Apr 17 19:26:39 2008 +0200

user32: Added support for WS_EX_RIGHT in the edit control.

---

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

diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c
index a5265e9..0866533 100644
--- a/dlls/user32/edit.c
+++ b/dlls/user32/edit.c
@@ -4813,6 +4813,9 @@ static LRESULT EDIT_WM_NCCreate(HWND hwnd, LPCREATESTRUCTW lpcs, BOOL unicode)
 	if (es->style & ES_COMBO)
 	   es->hwndListBox = GetDlgItem(es->hwndParent, ID_CB_LISTBOX);
 
+        /* FIXME: should we handle changes to WS_EX_RIGHT style after creation? */
+        if (lpcs->dwExStyle & WS_EX_RIGHT) es->style |= ES_RIGHT;
+
         /* Number overrides lowercase overrides uppercase (at least it
          * does in Win95).  However I'll bet that ES_NUMBER would be
          * invalid under Win 3.1.




More information about the wine-cvs mailing list