Maus – CursorPostion ermitteln

categories Borland C++ Builder

TPoint *mausxy = new TPoint;
GetCursorPos(mausxy);

int x = mausxy->x – Form1->Left;
int y = mausxy->y – Form1->Top;

Label1->Caption = “X= ” + IntToStr(x) + ” Y= ” + IntToStr(y);

delete mausxy;

Bitte bewerte diesen Beitrag:

Maus – CursorPostion ermitteln: 1 Stern2 Sterne3 Sterne4 Sterne5 Sterne 5,00 von 5 Punkten, basieren auf 1 abgegebenen Stimmen.
Loading ... Loading ...

Ähnliche Beiträge zum Thema "Maus – CursorPostion ermitteln":