Changeset 1263 for trunk/src/user32/edit.cpp
- Timestamp:
- Oct 12, 1999, 10:16:24 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/edit.cpp
r1258 r1263 1 /* $Id: edit.cpp,v 1. 3 1999-10-12 18:14:54sandervl Exp $ */1 /* $Id: edit.cpp,v 1.4 1999-10-12 20:16:22 sandervl Exp $ */ 2 2 /* 3 3 * Edit control … … 1853 1853 i = EDIT_EM_LineIndex(hwnd, es, line); 1854 1854 src = es->text + i; 1855 len = MIN(*(WORD *)lpch, EDIT_EM_LineLength(hwnd, es, i)); 1855 //SvL: Shouldn't this be *lpch-1? For terminating 0 1856 //len = MIN(*(WORD *)lpch-1, EDIT_EM_LineLength(hwnd, es, i)); 1857 len = MIN(*(WORD *)lpch, EDIT_EM_LineLength(hwnd, es, i)); 1856 1858 for (i = 0 ; i < len ; i++) { 1857 1859 *lpch = *src; … … 1859 1861 lpch++; 1860 1862 } 1863 //SvL: Terminate string 1864 //*lpch = 0; 1861 1865 return (LRESULT)len; 1862 1866 } … … 3172 3176 BOOL after_wrap; 3173 3177 3178 //SvL: Set focus 3179 SetFocus(hwnd); 3180 3174 3181 if (!(es->flags & EF_FOCUSED)) 3175 3182 return 0; … … 3457 3464 EDIT_InvalidateText(hwnd, es, es->selection_start, es->selection_end); 3458 3465 ShowCaret(hwnd); 3459 EDIT_NOTIFY_PARENT(hwnd, EN_SETFOCUS, "EN_SETFOCUS"); 3466 //SvL: TEST 3467 // EDIT_NOTIFY_PARENT(hwnd, EN_SETFOCUS, "EN_SETFOCUS"); 3460 3468 } 3461 3469
Note:
See TracChangeset
for help on using the changeset viewer.