| Home
| Previous
| Next
| Up

MGL_wmGetWindowParent

Returns parent window.

Declaration

window_t* MGLAPI MGL_wmGetWindowParent(
window_t *wnd)

Prototype In

mgraph.h

Parameters

wnd | the window

Return Value

Pointer to parent window or NULL.

Description

The fuction returns pointer to parent window, i.e. the window whose this window is child.

If the window was created with NULL parent passed to MGL_wmCreateWindow, this function does not return NULL. Instead, it returns pointer to WM's root window.

MGL_wmGetWindowParent(MGL_wmGetRootWindow(wm)) returns NULL.

See Also

MGL_wmCreateWindow, MGL_wmGetRootWindow

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com