Supported Browsers Home   
MGL_wmGetRootWindow Previous   
MGL_wmGetWindowFlags Next   
External Functions Up   

MGL_wmGetWindowAtPosition

Finds window at given coordinates.

Declaration

window_t* MGLAPI MGL_wmGetWindowAtPosition(
    winmng_t *wm,
    int x,
    int y)

Prototype In

mgraph.h

Parameters

wm

the window manager

x

X coordinate (global)

y

Y coordinate (global)

 

Return Value

Pointer to window at given position.

Description

The function returns window that draws itself at position (x,y). It properly handles hidden and overlapping windows. The position is expressed in global coordinates, i.e. relative to device context.

MGL_wmGetWindowAtPosition can never return NULL; if no other window is found, pointer to wm's root window is returned;

See Also

MGL_wmCoordLocalToGlobal, MGL_wmSetWindowPosition

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