OWLNext 7.0
Borland's Object Windows Library for the modern age
|
You can change how your application's main window is displayed by setting the TApplication data member nCmdShow, which corresponds to the WinMain parameter nCmdShow.
You can set this variable as soon as the Run function begins, up until the time you call TApplication::InitInstance(). This effectively means you can set nCmdShow in either the InitApplication or InitMainWindow function. For example, suppose you want to display your window maximized whenever the user runs the application. You could set nCmdShow in your InitMainWindow function as follows:
nCmdShow can be set to any value appropriate as a parameter to the ShowWindow Windows function or the TWindow::Show() member function, such as SW_HIDE, SW_SHOWNORMAL, SW_NORMAL, and so on.