Export (0) Print
Expand All
Expand Minimize

_WMainWindow( ) API Library Routine

Visual Studio .NET 2003

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

SET LIBRARY TO WMAIN
= EXWMAIN()

C 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

_WhToHwnd( ) API Library Routine | Hiding the Main Visual FoxPro Window

Show:
© 2014 Microsoft