Changeset 3153 for trunk/src/user32/edit.cpp
- Timestamp:
- Mar 18, 2000, 5:13:41 PM (25 years ago)
- File:
-
- 1 edited
-
trunk/src/user32/edit.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/edit.cpp
r3028 r3153 1 /* $Id: edit.cpp,v 1.3 7 2000-03-06 22:39:03 sandervlExp $ */1 /* $Id: edit.cpp,v 1.38 2000-03-18 16:13:26 cbratschi Exp $ */ 2 2 /* 3 3 * Edit control … … 9 9 * Copyright 1999 Christoph Bratschi 10 10 * 11 * Corel version: 20000 21212 * WINE version: 99121211 * Corel version: 20000317 12 * (WINE version: 991212) 13 13 * 14 14 * Status: complete … … 590 590 case WM_GETDLGCODE: 591 591 //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; 596 600 597 601 case WM_CHAR: … … 1259 1263 HLOCAL hNew32; 1260 1264 1261 if (size <= es->buffer_size)1262 return TRUE;1263 1265 if (size > es->buffer_limit) { 1264 1266 EDIT_NOTIFY_PARENT(hwnd, EN_MAXTEXT); 1265 1267 return FALSE; 1266 1268 } 1269 if (size <= es->buffer_size) 1270 return TRUE; 1267 1271 size = ((size / GROWLENGTH) + 1) * GROWLENGTH; 1268 1272 if (size > es->buffer_limit) … … 2222 2226 nyoff = MAX(0, es->y_offset + dy); 2223 2227 2224 //SvL: If nyoff > nr lines in control -> last line in control 2228 //SvL: If nyoff > nr lines in control -> last line in control 2225 2229 // window should show last line of control 2226 2230 // Wine code shows last line at the top of the control 2227 2231 // (Quake 3 startup edit control shows the problem) 2228 2232 if (nyoff >= es->line_count) { 2229 if(es->line_count <= vlc) {2230 nyoff = es->y_offset;//no need to scroll2231 }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; 2233 2237 } 2234 2238 dy = (es->y_offset - nyoff) * es->line_height; … … 4039 4043 while processing WM_SETTEXT */ 4040 4044 EDIT_NOTIFY_PARENT(hwnd, EN_CHANGE); 4041 es->flags &= EF_UPDATE;4045 es->flags &= ~EF_UPDATE; 4042 4046 } 4043 4047 }
Note:
See TracChangeset
for help on using the changeset viewer.
