_WMainWindow( ), API-Bibliotheksroutine
Gibt das WHANDLE-Fensterhandle des Visual FoxPro-Hauptfensters zurück.
WHANDLE_WMainWindow(void any)
void any; /* Pointer. */
Verwenden Sie die _WhToHwnd( ) API-Bibliotheksroutine, um WHANDLE in ein Windows-HWND zu konvertieren.
Im folgenden Beispiel wird eine Meldung im Visual FoxPro-Hauptfenster ausgegeben.
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
};
_WhToHwnd( ), API-Bibliotheksroutine | Ausblenden des Visual FoxPro-Hauptfensters