OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Changing the main window

You can use the SetMainWindow function to change your main window during the course of your application.

SetMainWindow takes one parameter, a pointer to a TFrameWindow object, and returns a pointer to the old main window. (If this is a new application that hasn't yet set up a main window, the return value is 0). You can use this pointer to keep the old main window in case you want to restore it. Alternatively, you can use this pointer to delete the old main window object.