mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Temporarily implement GWL_HWNDPARENT in user mode.
svn path=/trunk/; revision=31175
This commit is contained in:
parent
6be093f33b
commit
512b0582c6
1 changed files with 10 additions and 0 deletions
|
@ -529,6 +529,11 @@ GetWindowLongA ( HWND hWnd, int nIndex )
|
|||
case GWL_HWNDPARENT:
|
||||
DbgPrint("GWL_HWNDPARENT\n");
|
||||
/* FIXME: Implement in user32 */
|
||||
{
|
||||
HWND parent = GetAncestor( hWnd, GA_PARENT );
|
||||
if (parent == GetDesktopWindow()) parent = GetWindow( hWnd, GW_OWNER );
|
||||
return (LONG)parent;
|
||||
}
|
||||
case GWL_WNDPROC:
|
||||
/* Call win32k for this as a callproc handle may need
|
||||
to be created */
|
||||
|
@ -583,6 +588,11 @@ GetWindowLongW(HWND hWnd, int nIndex)
|
|||
case GWL_HWNDPARENT:
|
||||
DbgPrint("GWL_HWNDPARENT\n");
|
||||
/* FIXME: Implement in user32 */
|
||||
{
|
||||
HWND parent = GetAncestor( hWnd, GA_PARENT );
|
||||
if (parent == GetDesktopWindow()) parent = GetWindow( hWnd, GW_OWNER );
|
||||
return (LONG)parent;
|
||||
}
|
||||
case GWL_WNDPROC:
|
||||
/* Call win32k for this as a callproc handle may need
|
||||
to be created */
|
||||
|
|
Loading…
Reference in a new issue