Changeset 1263 for trunk/src


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

Location:
trunk/src/user32
Files:
4 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
  • trunk/src/user32/oslibwin.cpp

    r1261 r1263  
    1 /* $Id: oslibwin.cpp,v 1.24 1999-10-12 18:51:38 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.25 1999-10-12 20:16:23 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    625625         y = pswpOld->y;
    626626
     627//SvL: TEST
     628#if 0
    627629         if (!((y == 0) && (pswpOld->cy == 0)))
    628630         {
    629631            y = parentHeight - y - pswpOld->cy;
    630632         }
    631          else     y = parentHeight - y - cy;
     633#endif
    632634      }
    633       else     y = parentHeight - y - cy;
    634635 
    635636      if (flags & SWP_SIZE)
     
    643644         cy = pswpOld->cy;
    644645      }
     646      y  = parentHeight - y - cy;
     647     
    645648
    646649       if ((pswpOld->x == x) && (pswpOld->y == y))
  • trunk/src/user32/win32dlg.cpp

    r1253 r1263  
    1 /* $Id: win32dlg.cpp,v 1.11 1999-10-11 20:54:25 sandervl Exp $ */
     1/* $Id: win32dlg.cpp,v 1.12 1999-10-12 20:16:23 sandervl Exp $ */
    22/*
    33 * Win32 Dialog Code for OS/2
     
    561561        dlgtemplate = (LPCSTR)getControl( (WORD *)dlgtemplate, &info, dlgInfo.dialogEx );
    562562
     563        dprintf(("Create CONTROL %d", info.id));
    563564        hwndCtrl = CreateWindowExW( info.exStyle | WS_EX_NOPARENTNOTIFY,
    564565                                    (LPCWSTR)info.className,
     
    587588            idResult = ::GetWindowWord( hwndCtrl, GWW_ID );
    588589        }
     590        dprintf(("Create CONTROL %d DONE", info.id));
    589591    }
    590592    return TRUE;
  • trunk/src/user32/windlg.cpp

    r1248 r1263  
    1 /* $Id: windlg.cpp,v 1.5 1999-10-11 16:04:52 cbratschi Exp $ */
     1/* $Id: windlg.cpp,v 1.6 1999-10-12 20:16:24 sandervl Exp $ */
    22/*
    33 * Win32 dialog apis for OS/2
     
    221221}
    222222//******************************************************************************
     223//TODO: Can be used for any parent-child pair
    223224//******************************************************************************
    224225HWND WIN32API GetDlgItem(HWND hwnd, int id)
     
    233234        return 0;
    234235    }
    235     dprintf(("USER32:  GetDlgItem\n"));
    236236    dlgcontrol = dialog->getDlgItem(id);
    237237    if(dlgcontrol) {
     238        dprintf(("USER32: GetDlgItem %x %d returned %x\n", hwnd, id, dlgcontrol->getWindowHandle()));
    238239        return dlgcontrol->getWindowHandle();
    239240    }
     241    dprintf(("USER32: GetDlgItem %x %d NOT FOUND!\n", hwnd, id));
    240242    return 0;
    241243}
Note: See TracChangeset for help on using the changeset viewer.