Changeset 1724 for trunk/src/user32/edit.cpp
- Timestamp:
- Nov 13, 1999, 5:42:43 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/edit.cpp
r1717 r1724 1 /* $Id: edit.cpp,v 1.1 3 1999-11-12 17:16:36cbratschi Exp $ */1 /* $Id: edit.cpp,v 1.14 1999-11-13 16:42:41 cbratschi Exp $ */ 2 2 /* 3 3 * Edit control … … 9 9 * Copyright 1999 Christoph Bratschi 10 10 * 11 * WINE version: 99 092311 * WINE version: 991031 12 12 */ 13 13 … … 184 184 static BOOL EDIT_EM_FmtLines(HWND hwnd, EDITSTATE *es, BOOL add_eol); 185 185 static HLOCAL EDIT_EM_GetHandle(HWND hwnd, EDITSTATE *es); 186 static HLOCAL16 EDIT_EM_GetHandle16(HWND hwnd, EDITSTATE *es);187 186 static INT EDIT_EM_GetLine(HWND hwnd, EDITSTATE *es, INT line, LPSTR lpch); 188 187 static LRESULT EDIT_EM_GetSel(HWND hwnd, EDITSTATE *es, LPUINT start, LPUINT end); … … 1077 1076 EDIT_GetLineRect(hwnd, es, 0, start, end, &line_rect); 1078 1077 if (IntersectRect(&rc, &line_rect, &es->format_rect)) 1079 InvalidateRect(hwnd, &rc, FALSE); 1078 { 1079 if (es->flags & EF_FOCUSED) HideCaret(hwnd); 1080 InvalidateRect(hwnd, &rc, FALSE); 1081 if (es->flags & EF_FOCUSED) ShowCaret(hwnd); 1082 } 1080 1083 } 1081 1084 … … 1117 1120 GetClientRect(hwnd, &rc1); 1118 1121 IntersectRect(&rcWnd, &rc1, &es->format_rect); 1122 if (es->flags & EF_FOCUSED) HideCaret(hwnd); 1119 1123 if (sl == el) { 1120 1124 EDIT_GetLineRect(hwnd, es, sl, sc, ec, &rcLine); … … 1140 1144 InvalidateRect(hwnd, &rcUpdate, FALSE); 1141 1145 } 1146 if (es->flags & EF_FOCUSED) ShowCaret(hwnd); 1142 1147 } 1143 1148 … … 1181 1186 { 1182 1187 HLOCAL hNew32; 1183 HLOCAL16 hNew16;1184 1188 1185 1189 if (size <= es->buffer_size) … … 2623 2627 switch (c) { 2624 2628 case '\r': 2625 /* If the edit doesn't want the return, do nothing */2626 if(!(es->style & ES_WANTRETURN))2627 2629 /* If the edit doesn't want the return and it's not a multiline edit, do nothing */ 2630 if(!(es->style & ES_MULTILINE) && !(es->style & ES_WANTRETURN)) 2631 break; 2628 2632 case '\n': 2629 2633 if (es->style & ES_MULTILINE) {
Note:
See TracChangeset
for help on using the changeset viewer.