JavaScript Editor js editor     Web development 



Main Page

Returns the WHANDLE of the main Visual FoxPro window.

WHANDLE _WMainWindow(void any)
void any;                     /* Pointer. */

Remarks

Use the _WhToHwnd(В ) API Library Routine function to convert the WHANDLE to a Windows HWND.

Example

The following example writes a message to the main Visual FoxPro window.

Visual FoxPro Code

В Copy Code
SET LIBRARY TO WMAIN
= EXWMAIN()

C Code

В Copy Code
#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
};

See Also



JavaScript Editor js editor     Web development