Displays the specified screen
#include <nwconio.h>
int DisplayScreen (
int screenHandle);
(IN) Specifies the screen handle of the screen to display; if NULL is specified and the current screen is a popup screen, then a DropPopUpScreen is done on the current screen.
The following table lists return values and descriptions.
|
Value |
Hex |
Name |
Description |
|---|---|---|---|
|
0 |
(0x00) |
ESUCCESS |
Successful. |
|
22 |
(0x16) |
EBADHNDL |
Bad screen handle was passed in. |
WARNING:An invalid screen handle is not guaranteed to return EBADHNDL; it can also cause the server to abend. Always pass a handle returned from CreateScreen or GetScreenInfo.
In addition to displaying the specified screen, this function also makes the specified screen the current screen.
If the screenHandle parameter specifies a popup screen:
The specified popup screen is displayed over the currently displayed screen (original screen).
When the DropPopUpScreen or DestroyScreen function is called for the popup screen, and the popup screen is displayed, the original screen, if it still exists, is redisplayed. Otherwise, the System Console Screen is displayed.