OWLNext 7.0
Borland's Object Windows Library for the modern age
|
If you destroy an interface element yourself so that you can redisplay the interface object later, you must make sure that you delete the interface object when you're done with it.
Because an interface object is nothing more than a regular C++ object, you can delete it using the delete statement if you have dynamically allocated the object with new. The following code illustrates how to destroy the interface element and the interface object: