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;
Trending Articles
More Pages to Explore .....