Ignore:
Timestamp:
Mar 18, 2000, 5:13:41 PM (25 years ago)
Author:
cbratschi
Message:

merged with Corel 20000317, small icon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/edit.cpp

    r3028 r3153  
    1 /* $Id: edit.cpp,v 1.37 2000-03-06 22:39:03 sandervl Exp $ */
     1/* $Id: edit.cpp,v 1.38 2000-03-18 16:13:26 cbratschi Exp $ */
    22/*
    33 *      Edit control
     
    99 *      Copyright  1999 Christoph Bratschi
    1010 *
    11  * Corel version: 20000212
    12  * WINE version: 991212
     11 * Corel version: 20000317
     12 * (WINE version: 991212)
    1313 *
    1414 * Status:  complete
     
    590590        case WM_GETDLGCODE:
    591591                //DPRINTF_EDIT_MSG32("WM_GETDLGCODE");
    592                 result = (es->style & ES_MULTILINE) ?
    593                                 DLGC_WANTALLKEYS | DLGC_HASSETSEL | DLGC_WANTCHARS | DLGC_WANTARROWS :
    594                                 DLGC_HASSETSEL | DLGC_WANTCHARS | DLGC_WANTARROWS;
    595                 break;
     592                result = DLGC_HASSETSEL | DLGC_WANTCHARS | DLGC_WANTARROWS;
     593                if (es->style & ES_WANTRETURN)
     594                {
     595                   LPMSG msg = (LPMSG)lParam;
     596                   if (msg && (msg->message == WM_KEYDOWN) && (msg->wParam == VK_RETURN))
     597                      result |= DLGC_WANTMESSAGE;
     598                }
     599                break;
    596600
    597601        case WM_CHAR:
     
    12591263        HLOCAL hNew32;
    12601264
    1261         if (size <= es->buffer_size)
    1262                 return TRUE;
    12631265        if (size > es->buffer_limit) {
    12641266                EDIT_NOTIFY_PARENT(hwnd, EN_MAXTEXT);
    12651267                return FALSE;
    12661268        }
     1269        if (size <= es->buffer_size)
     1270                return TRUE;
    12671271        size = ((size / GROWLENGTH) + 1) * GROWLENGTH;
    12681272        if (size > es->buffer_limit)
     
    22222226        nyoff = MAX(0, es->y_offset + dy);
    22232227
    2224         //SvL: If nyoff > nr lines in control -> last line in control
     2228        //SvL: If nyoff > nr lines in control -> last line in control
    22252229        //     window should show last line of control
    22262230        //     Wine code shows last line at the top of the control
    22272231        //     (Quake 3 startup edit control shows the problem)
    22282232        if (nyoff >= es->line_count) {
    2229                 if(es->line_count <= vlc) {
    2230                         nyoff = es->y_offset;   //no need to scroll
    2231                 }
    2232                 else    nyoff = es->line_count - vlc - 1;
     2233                if(es->line_count <= vlc) {
     2234                        nyoff = es->y_offset;   //no need to scroll
     2235                }
     2236                else    nyoff = es->line_count - vlc - 1;
    22332237        }
    22342238        dy = (es->y_offset - nyoff) * es->line_height;
     
    40394043             while processing WM_SETTEXT */
    40404044          EDIT_NOTIFY_PARENT(hwnd, EN_CHANGE);
    4041           es->flags &= EF_UPDATE;
     4045          es->flags &= ~EF_UPDATE;
    40424046        }
    40434047}
Note: See TracChangeset for help on using the changeset viewer.