GrCloseWindow()

Name

GrCloseWindow() -- Close the specified window

Synopsis

void GrCloseWindow ( GR_WINDOW_ID wid );

Description

This function sends a GR_EVENT_TYPE_CLOSE_REQ event to the specified window, if the client has selected to receive GR_EVENT_TYPE_CLOSE_REQ events on the window. This is used to request an application to shutdown, but not force an immediate shutdown. This way an application can shutdown cleanly, and possibly ask a user if he/she wishes to save files before shutting down.

Parameters

TypeNameDescription
GR_WINDOW_IDwidThe ID of the window to close.

See Also

GR_EVENT_TYPE_CLOSE_REQ, GrNewWindow(), GrKillWindow(), GrDestroyWindow(), GrUnmapWindow().