MGL_wmSetWindowUserData
Associates user data with the window.
Declaration
void MGLAPI MGL_wmSetWindowUserData(
window_t *wnd,
void *data)
Prototype In
mgraph.h
Parameters
wnd |
the window |
data |
pointer to user data |
Description
This function is primarily meant for interaction with higher-level windowing system built on top of MGL WM. window_t structure contains user data pointer that is not used for anything by MGL, but the user is provided with functions for reading and writing it (MGL_wmSetWindowUserData and MGL_wmGetWindowUserData).
You probably want to set window destructor, too, in order to free user data before the window is destroyed.
See Also
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com