JavaScript Editor js editor     Web development 

Main Page

Displays a hidden window on the screen.

void _WShow(WHANDLE wh)
WHANDLE wh;            /* Window handle. */


When you create a window, it is hidden by default until you use _WShow(В ) to make it visible.

For more information on how to create an API library and integrate it with Visual FoxPro, see Accessing the Visual FoxPro API.


The following example contains two API routines. WINOPEN(В ) opens a window but doesn't call _WShow(В ), illustrating that the window is hidden until _WShow(В ) displays it on the screen.

Visual FoxPro Code

В Copy Code
wh = WOPEN()
= WSHOW(wh)

C Code

В Copy Code
#include <pro_ext.h>

FAR WOpen(ParamBlk FAR *parm)
   _RetInt(_WOpen(2, 2, 20, 70, WEVENT | CLOSE, WINDOW_SCHEME,
      (Scheme FAR *) 0, WO_SYSTEMBORDER), 10);

FAR WShow(ParamBlk FAR *parm)

FoxInfo myFoxInfo[] = {
   {"WOPEN", (FPFI) WOpen, 0, ""},
   {"WSHOW", (FPFI) WShow, 1, "I"},
FoxTable _FoxTable = {
   (FoxTable FAR *) 0, sizeof(myFoxInfo)/sizeof(FoxInfo), myFoxInfo

See Also

JavaScript Editor js editor     Web development