Help Center

AfxGetWindowLocationsub

Returns the location of the top left corner of the window, in pixels.

WindowssubAfxWin.incdocumented

Syntax

SUB AfxGetWindowLocation (BYVAL hwnd AS HWND, BYREF nLeft AS LONG, BYREF nTop AS LONG)

Parameters

NameDescription
hwndHandle to the window.
nLeftOut. The horizontal location.
nTopOut. The vertical location.

Description

Returns the location of the top left corner of the window, in pixels. The location is relative to the upper-left corner of the client area in the parent window.

Reference

  • Include file AfxWin.inc
  • Defined in AfxNova/AfxWin.inc:2311
  • Documented in Windows/Windows Procedures.md
  • Topic: Windows Procedures