Changeset 5968 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Jun 11, 2001, 10:08:26 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r5964 r5968 1 /* $Id: win32wbase.cpp,v 1.26 3 2001-06-11 14:37:46sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.264 2001-06-11 20:08:24 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 2903 2903 2904 2904 dprintf(("EnumChildWindows of %x parameter %x %x (%x)", getWindowHandle(), lpfn, lParam, getFirstChild())); 2905 lock(); 2905 2906 for (child = (Win32BaseWindow *)getFirstChild(); child; child = (Win32BaseWindow *)child->getNextChild()) 2906 2907 { 2907 2908 dprintf(("EnumChildWindows: enumerating child %x (owner %x; parent %x)", child->getWindowHandle(), (child->getOwner()) ? child->getOwner()->getWindowHandle() : 0, getWindowHandle())); 2908 2909 hwnd = child->getWindowHandle(); 2909 if(child-> getOwner()) {2910 if(child->IsWindowDestroyed() || child->getOwner()) { 2910 2911 continue; //shouldn't have an owner (Wine) 2911 2912 } 2913 child->addRef(); 2914 unlock(); 2912 2915 if(lpfn(hwnd, lParam) == FALSE) 2913 2916 { 2914 rc = FALSE; 2915 break; 2916 } 2917 child->release(); 2918 return FALSE; 2919 } 2920 child->release(); 2921 lock(); 2917 2922 //check if the window still exists 2918 2923 if(!::IsWindow(hwnd)) … … 2924 2929 { 2925 2930 dprintf(("EnumChildWindows: Enumerate children of %x", child->getWindowHandle())); 2931 child->addRef(); 2932 unlock(); 2926 2933 if(child->EnumChildWindows(lpfn, lParam) == FALSE) 2927 2934 { 2928 rc = FALSE; 2929 break; 2930 } 2935 child->release(); 2936 return FALSE; 2937 } 2938 child->release(); 2939 lock(); 2931 2940 } 2932 2941 prevchild = child; 2933 2942 } 2943 unlock(); 2934 2944 return rc; 2935 2945 } … … 3476 3486 } 3477 3487 oldval = (LONG)WINPROC_GetProc(win32wndproc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 3478 dprintf(("SetWindowLong GWL_WNDPROC %x old %x new style%x", getWindowHandle(), oldval, value));3488 dprintf(("SetWindowLong GWL_WNDPROC %x old %x new wndproc %x", getWindowHandle(), oldval, value)); 3479 3489 WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, (WNDPROC)value, type, WIN_PROC_WINDOW); 3480 3490 break;
Note:
See TracChangeset
for help on using the changeset viewer.