mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Patch by Filip Navara.
- Fixed IsChild. svn path=/trunk/; revision=7658
This commit is contained in:
parent
6afe5b36ec
commit
aded6947aa
1 changed files with 8 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: window.c,v 1.93 2003/12/26 22:52:11 gvg Exp $
|
||||
/* $Id: window.c,v 1.94 2004/01/15 20:59:57 gvg Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS user32.dll
|
||||
|
@ -1023,8 +1023,13 @@ WINBOOL STDCALL
|
|||
IsChild(HWND hWndParent,
|
||||
HWND hWnd)
|
||||
{
|
||||
// Untested
|
||||
return ((HWND)NtUserGetWindowLong(hWnd, GWL_HWNDPARENT, FALSE)) == hWndParent;
|
||||
do
|
||||
{
|
||||
hWnd = (HWND)NtUserGetWindowLong(hWnd, GWL_HWNDPARENT, FALSE);
|
||||
}
|
||||
while (hWnd != NULL && hWnd != hWndParent);
|
||||
|
||||
return hWnd == hWndParent;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue