Changeset 4194 for trunk/src/user32/win32class.cpp
- Timestamp:
- Sep 5, 2000, 9:20:38 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32class.cpp
r3702 r4194 1 /* $Id: win32class.cpp,v 1.1 7 2000-06-13 21:26:29sandervl Exp $ */1 /* $Id: win32class.cpp,v 1.18 2000-09-05 19:20:35 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Class Managment Code for OS/2 … … 425 425 ULONG rc; 426 426 427 if(classNameA) {428 dprintf2(("Win32WndClass::setClassLongA %s: %d %x", classNameA, index, lNewVal));429 }430 else dprintf2(("Win32WndClass::setClassLongA %d: %d %x", classAtom, index, lNewVal));431 427 switch(index) { 432 428 case GCL_CBCLSEXTRA: //TODO (doesn't affect allocated classes, so what does it do?) … … 467 463 break; 468 464 case GCL_WNDPROC: 465 //Note: Type of SetWindowLong determines new window proc type 466 // UNLESS the new window proc has already been registered 467 // (use the old type in that case) 468 // (VERIFIED in NT 4, SP6) 469 //TODO: Is that also true for GCL_WNDPROC??????????????? 469 470 rc = (LONG)WINPROC_GetProc(windowProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A ); 470 471 WINPROC_SetProc((HWINDOWPROC *)&windowProc, (WNDPROC)lNewVal, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A, WIN_PROC_CLASS ); … … 477 478 rc = userClassLong[index]; 478 479 userClassLong[index] = lNewVal; 479 return(rc);480 break; 480 481 } 481 482 SetLastError(ERROR_INVALID_PARAMETER); 483 if(classNameA) { 484 dprintf2(("WARNING: Win32WndClass::setClassLongA %s: %d %x -> wrong INDEX", classNameA, index, lNewVal)); 485 } 486 else dprintf2(("WARNING: Win32WndClass::setClassLongA %d: %d %x -> wrong INDEX", classAtom, index, lNewVal)); 482 487 return 0; 483 488 } 489 SetLastError(ERROR_SUCCESS); 490 if(classNameA) { 491 dprintf2(("Win32WndClass::setClassLongA %s: %d %x returned %x", classNameA, index, lNewVal, rc)); 492 } 493 else dprintf2(("Win32WndClass::setClassLongA %d: %d %x returned %x", classAtom, index, lNewVal, rc)); 484 494 return(rc); 485 495 }
Note:
See TracChangeset
for help on using the changeset viewer.