Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
_WSendBehind( ) API Library Routine
Collapse the table of content
Expand the table of content

_WSendBehind( ) API Library Routine

Sends the specified window to the backmost position on the screen.


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

The following example creates five overlapping windows. _WSendBehind( ) sends each window to the backmost position, starting with the last window created.

Visual FoxPro Code

SET LIBRARY TO WSENDBEH

C Code

#include <pro_ext.h>

FAR WSendBehindEx(ParamBlk FAR *parm)
{
   WHANDLE wh[5];
   int i;

   for (i = 0; i < 5; i++)
   {
      wh[i] = _WOpen(4 + 2*i,4 + 2*i,12 + 2*i,40 + 2*i,WEVENT | CLOSE,
         WINDOW_SCHEME, (Scheme FAR *) 0, WO_SYSTEMBORDER);
      _WShow(wh[i]);
   }
   for (i = 4; i >= 0; i--)
   {
      _Execute("WAIT WINDOW 'Press key to _WSendBehind() next window'");
      _WSendBehind(wh[i]);
   }
}

FoxInfo myFoxInfo[] = {
   {"ONLOAD", (FPFI) WSendBehindEx, CALLONLOAD, ""},
};
FoxTable _FoxTable = {
   (FoxTable FAR *) 0, sizeof(myFoxInfo)/sizeof(FoxInfo), myFoxInfo
};

Community Additions

ADD
Show:
© 2015 Microsoft