Help Center

AfxGetWindowRectfunction

Retrieves the dimensions of the bounding rectangle of the specified window.

WindowsfunctionAfxWin.incdocumented

Syntax

FUNCTION AfxGetWindowRect (BYVAL hwnd AS HWND) AS RECT

Return value

A RECT structure with the retrieved dimensions.

Description

Retrieves the dimensions of the bounding rectangle of the specified window. The dimensions are given in screen coordinates that are relative to the upper-left corner of the screen.

Reference

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