- Timestamp:
- Oct 12, 1999, 10:16:24 PM (26 years ago)
- 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: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 -
trunk/src/user32/oslibwin.cpp
r1261 r1263 1 /* $Id: oslibwin.cpp,v 1.2 4 1999-10-12 18:51:38sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.25 1999-10-12 20:16:23 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 625 625 y = pswpOld->y; 626 626 627 //SvL: TEST 628 #if 0 627 629 if (!((y == 0) && (pswpOld->cy == 0))) 628 630 { 629 631 y = parentHeight - y - pswpOld->cy; 630 632 } 631 else y = parentHeight - y - cy; 633 #endif 632 634 } 633 else y = parentHeight - y - cy;634 635 635 636 if (flags & SWP_SIZE) … … 643 644 cy = pswpOld->cy; 644 645 } 646 y = parentHeight - y - cy; 647 645 648 646 649 if ((pswpOld->x == x) && (pswpOld->y == y)) -
trunk/src/user32/win32dlg.cpp
r1253 r1263 1 /* $Id: win32dlg.cpp,v 1.1 1 1999-10-11 20:54:25sandervl Exp $ */1 /* $Id: win32dlg.cpp,v 1.12 1999-10-12 20:16:23 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 561 561 dlgtemplate = (LPCSTR)getControl( (WORD *)dlgtemplate, &info, dlgInfo.dialogEx ); 562 562 563 dprintf(("Create CONTROL %d", info.id)); 563 564 hwndCtrl = CreateWindowExW( info.exStyle | WS_EX_NOPARENTNOTIFY, 564 565 (LPCWSTR)info.className, … … 587 588 idResult = ::GetWindowWord( hwndCtrl, GWW_ID ); 588 589 } 590 dprintf(("Create CONTROL %d DONE", info.id)); 589 591 } 590 592 return TRUE; -
trunk/src/user32/windlg.cpp
r1248 r1263 1 /* $Id: windlg.cpp,v 1. 5 1999-10-11 16:04:52 cbratschiExp $ */1 /* $Id: windlg.cpp,v 1.6 1999-10-12 20:16:24 sandervl Exp $ */ 2 2 /* 3 3 * Win32 dialog apis for OS/2 … … 221 221 } 222 222 //****************************************************************************** 223 //TODO: Can be used for any parent-child pair 223 224 //****************************************************************************** 224 225 HWND WIN32API GetDlgItem(HWND hwnd, int id) … … 233 234 return 0; 234 235 } 235 dprintf(("USER32: GetDlgItem\n"));236 236 dlgcontrol = dialog->getDlgItem(id); 237 237 if(dlgcontrol) { 238 dprintf(("USER32: GetDlgItem %x %d returned %x\n", hwnd, id, dlgcontrol->getWindowHandle())); 238 239 return dlgcontrol->getWindowHandle(); 239 240 } 241 dprintf(("USER32: GetDlgItem %x %d NOT FOUND!\n", hwnd, id)); 240 242 return 0; 241 243 }
Note:
See TracChangeset
for help on using the changeset viewer.