DESKTOP GET LOC statement

Purpose

Retrieve the location of the top, left corner of the client area of the desktop, in pixels.

Syntax

DESKTOP GET LOC TO x&, y&

Remarks

The desktop client area is the part of the screen that is not obscured by the system tray.  The system tray's position on the screen determines the upper, left position of the client area.  If the tray is located at the bottom of the screen (default), left and top coordinates are 0,0.  If the tray is located on the right side of the screen, left and top coordinates are 0,0.  If the tray is located on the left side of the screen, left and top coordinates are  TrayWidth,0.  If the tray is located at the top of the screen, left and top coordinates are  0,TrayHeight.

This can be used in combination with DESKTOP GET CLIENT or DESKTOP GET SIZE for exact positioning of windows on the desktop.

See also

DESKTOP GET CLIENT, DESKTOP GET SIZE