OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Destroying the Interface Element

Destroying the interface element is the responsibility of the interface object's Destroy member function.

Destroy destroys the interface elements by calling the DestroyWindow API function. When the interface element is destroyed, the interface object's HWindow data member is set to zero. Therefore, you can tell if an interface object is still associated with a valid interface element by checking its HWindow. When a user closes a window on the screen, the following things happen:

  • Windows notifies the window.
  • The window goes through the CanClose mechanism to verify that the window should be closed.
  • If CanClose approves the closing of the window, the interface element is destroyed and the interface object is deleted.

See Also