Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gibt die Zeile auf dem Bildschirm zurück, in der der obere Fensterrand ausgegeben wird.
unsigned int _WTop(WHANDLE wh)
WHANDLE wh; /* Window handle. */
Beispiel
Im folgenden Beispiel wird die Zeilenposition des aktiven Fensters angezeigt.
Visual FoxPro-Code
SET LIBRARY TO WTOP
=WPOSITION()
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("\ntop ="); putLong(_WTop(wh), 5);
_PutStr("\nleft ="); putLong(_WLeft(wh), 5);
_PutStr("\nbottom ="); putLong(_WBottom(wh), 5);
_PutStr("\nright ="); putLong(_WRight(wh), 5);
}
FoxInfo myFoxInfo[] = {
{"WPOSITION", (FPFI) Example, 0, ""},
};
FoxTable _FoxTable = {
(FoxTable FAR *) 0, sizeof(myFoxInfo)/sizeof(FoxInfo), myFoxInfo
};
Siehe auch
_WBottom( ), API-Bibliotheksroutine | _WHeight( ), API-Bibliotheksroutine | _WLeft( ), API-Bibliotheksroutine | _WRight( ), API-Bibliotheksroutine | _WWidth( ), API-Bibliotheksroutine | _WTopP( ), API-Bibliotheksroutine