Changeset 6012 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Jun 14, 2001, 4:49:19 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r6008 r6012 1 /* $Id: win32wbase.cpp,v 1.2 69 2001-06-14 11:30:56sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.270 2001-06-14 14:49:17 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 2994 2994 HWND Win32BaseWindow::FindWindowById(int id) 2995 2995 { 2996 HWND hwnd; 2997 2996 2998 lock(); 2997 2999 for (Win32BaseWindow *child = (Win32BaseWindow *)getFirstChild(); child; child = (Win32BaseWindow *)child->getNextChild()) … … 2999 3001 if (child->getWindowId() == id) 3000 3002 { 3003 hwnd = child->getWindowHandle(); 3001 3004 unlock(); 3002 return child->getWindowHandle();3005 return hwnd; 3003 3006 } 3004 3007 } … … 3702 3705 Win32BaseWindow *window; 3703 3706 3704 lock(&critsect);3707 //// lock(&critsect); 3705 3708 if(HwGetWindowHandleData(hwnd, (DWORD *)&window) == TRUE) { 3706 3709 if(window) { … … 3708 3711 window->addRef(); 3709 3712 } 3710 unlock(&critsect);3713 //// unlock(&critsect); 3711 3714 return window; 3712 3715 } 3713 unlock(&critsect);3716 //// unlock(&critsect); 3714 3717 // dprintf2(("Win32BaseWindow::GetWindowFromHandle: not a win32 window %x", hwnd)); 3715 3718 return NULL;
Note:
See TracChangeset
for help on using the changeset viewer.