mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:42:57 +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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS user32.dll
|
* PROJECT: ReactOS user32.dll
|
||||||
|
@ -1023,8 +1023,13 @@ WINBOOL STDCALL
|
||||||
IsChild(HWND hWndParent,
|
IsChild(HWND hWndParent,
|
||||||
HWND hWnd)
|
HWND hWnd)
|
||||||
{
|
{
|
||||||
// Untested
|
do
|
||||||
return ((HWND)NtUserGetWindowLong(hWnd, GWL_HWNDPARENT, FALSE)) == hWndParent;
|
{
|
||||||
|
hWnd = (HWND)NtUserGetWindowLong(hWnd, GWL_HWNDPARENT, FALSE);
|
||||||
|
}
|
||||||
|
while (hWnd != NULL && hWnd != hWndParent);
|
||||||
|
|
||||||
|
return hWnd == hWndParent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue