Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the number of columns in the content area of the specified window.
unsigned int _WWidth(WHANDLE wh)
WHANDLE wh; /* Window handle. */
Example
The following example shows the height and width in rows and columns of the active window.
Visual FoxPro Code
SET LIBRARY TO WWIDTH
=WDIMEN()
C Code
#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
};
See Also
_WBottom( ) API Library Routine | _WHeight( ) API Library Routine | _WLeft( ) API Library Routine | _WRight( ) API Library Routine | _WTop( ) API Library Routine | _WWidthP( ) API Library Routine