_WHeight( ) (Rutina de biblioteca API)
Devuelve el número de filas incluidas en el área de contenido de la ventana especificada.
unsigned int _WHeight(WHANDLE wh)
WHANDLE wh; /* Window handle. */
Ejemplo
El ejemplo siguiente muestra el alto y el ancho en filas y columnas de la ventana activa.
Código Visual FoxPro
SET LIBRARY TO WHEIGHT
=WDIMEN()
Código C
#include <pro_ext.h>
void putLong(long n, int width)
{
Value val;
val.ev_type = 'I';
val.ev_long = n;
val.ev_width = width;
_PutValue(&val);
}
void FAR Example(ParamBlk FAR *parm)
{
WHANDLE wh = _WOnTop();
_PutStr("\nheight ="); putLong(_WHeight(wh), 5);
_PutStr("\nwidth ="); putLong(_WWidth(wh), 5);
}
FoxInfo myFoxInfo[] = {
{"WDIMEN", (FPFI) Example, 0, ""},
};
FoxTable _FoxTable = {
(FoxTable FAR *) 0, sizeof(myFoxInfo)/sizeof(FoxInfo), myFoxInfo
};
Vea también
_WBottom( ) (Rutina de biblioteca API) | _WLeft( ) (Rutina de biblioteca API) | _WRight( ) (Rutina de biblioteca API) | _WTop( ) (Rutina de biblioteca API) | _WWidth( ) (Rutina de biblioteca API)