_WMainWindow( ) API Library Routine Example
The following example writes a message to the main Visual FoxPro window.
SET LIBRARY TO WMAIN
= EXWMAIN()
#include <pro_ext.h>
void FAR Example(ParamBlk FAR *parm)
{
WHANDLE wh = _WMainWindow();
_WPutStr(wh, "\nThis is the FoxPro main window or desktop.");
}
FoxInfo myFoxInfo[] = {
{"EXWMAIN", Example, 0, ""},
};
FoxTable _FoxTable = {
(FoxTable FAR *) 0, sizeof(myFoxInfo)/sizeof(FoxInfo), myFoxInfo
};