pull up r20101 from trunk
authorTom Yu <tlyu@mit.edu>
Fri, 5 Oct 2007 16:31:34 +0000 (16:31 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 5 Oct 2007 16:31:34 +0000 (16:31 +0000)
 r20101@cathode-dark-space:  jaltman | 2007-10-05 11:23:53 -0400
 ticket: new
 subject: NIM: BUG: APP: New edit controls should be marked ES_AUTOHSCROLL
 component: windows

 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: 5809
version_fixed: 1.6.3

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@20102 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,