AfxGetWindowLocationsub
Returns the location of the top left corner of the window, in pixels.
Syntax
SUB AfxGetWindowLocation (BYVAL hwnd AS HWND, BYREF nLeft AS LONG, BYREF nTop AS LONG)
Parameters
| Name | Description | |
|---|---|---|
hwnd | Handle to the window. | |
nLeft | Out. The horizontal location. | |
nTop | Out. 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