WindowDestroy

HC GUI programming Windows A-F WindowDestroy
WindowClose DestroyChildren

bool WindowDestroy window


Destroys the window safely. Use this function instead of the delete operator, since different window classes can be destroyed differently. Frames and dialogs are not destroyed immediately when this function is called -- they are added to a list of windows to be deleted on idle time, when all the window's events have been processed. This prevents problems with events being sent to non-existent windows.

Return value: true if the window has either been successfully deleted, or it has been added to the list of windows pending real deletion.

WindowClose DestroyChildren