Ignore:
Timestamp:
Oct 12, 1999, 10:16:24 PM (26 years ago)
Author:
sandervl
Message:

Bugfix for SetPos bugfix, Edit controls now work, experimental fix in Edit control for VPBuddy

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:54 sandervl Exp $ */
     1/* $Id: edit.cpp,v 1.4 1999-10-12 20:16:22 sandervl Exp $ */
    22/*
    33 *      Edit control
     
    18531853        i = EDIT_EM_LineIndex(hwnd, es, line);
    18541854        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));
    18561858        for (i = 0 ; i < len ; i++) {
    18571859                *lpch = *src;
     
    18591861                lpch++;
    18601862        }
     1863        //SvL: Terminate string
     1864        //*lpch = 0;
    18611865        return (LRESULT)len;
    18621866}
     
    31723176        BOOL after_wrap;
    31733177
     3178        //SvL: Set focus
     3179        SetFocus(hwnd);
     3180
    31743181        if (!(es->flags & EF_FOCUSED))
    31753182                return 0;
     
    34573464                EDIT_InvalidateText(hwnd, es, es->selection_start, es->selection_end);
    34583465        ShowCaret(hwnd);
    3459         EDIT_NOTIFY_PARENT(hwnd, EN_SETFOCUS, "EN_SETFOCUS");
     3466//SvL: TEST
     3467//        EDIT_NOTIFY_PARENT(hwnd, EN_SETFOCUS, "EN_SETFOCUS");
    34603468}
    34613469
Note: See TracChangeset for help on using the changeset viewer.