NIM: BUG: APP: New edit controls should be marked ES_AUTOHSCROLL
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 5 Oct 2007 15:23:53 +0000 (15:23 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 5 Oct 2007 15:23:53 +0000 (15:23 +0000)
The EDIT controls used to accept input from the user must be set to
support automatic horizontal scrolling.  Otherwise, the number of input
characters is arbitrarily restricted based upon the font selected by
the user as part of the active Windows theme.

Horizontal scrolling is enabled with the ES_AUTOHSCROLL flag during
control construction.

ticket: new
component: windows

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20101 dc483132-0cff-0310-8789-dd5450dbe970

src/windows/identity/ui/newcredwnd.c

index 208678a79d425c0eb10b94f520a08e61d5608025..e40e9da9a724094e520667ca4d0bf8609ffe2ec4 100644 (file)
@@ -2426,7 +2426,7 @@ static LRESULT nc_handle_wm_nc_notify(HWND hwnd,
                      (d->nc->prompts[i]->def ? 
                       d->nc->prompts[i]->def : L""),
                      WS_CHILD | WS_TABSTOP |
-                     WS_BORDER |
+                     WS_BORDER | ES_AUTOHSCROLL |
                      ((d->nc->prompts[i]->flags & 
                        KHUI_NCPROMPT_FLAG_HIDDEN)? ES_PASSWORD:0),
                      er.left, er.top,