Help Center

CStatusBar.GetRectmethod

Retrieves the bounding rectangle of a part in a status window.

WindowsmethodCStatusBar.incdocumented

Syntax

FUNCTION GetRect (BYVAL hStatusBar AS HWND, BYVAL nPart AS DWORD, BYVAL lprc AS RECT PTR) AS LONG
FUNCTION GetRect (BYVAL hStatusBar AS HWND, BYVAL nPart AS DWORD, BYREF rc AS RECT) AS LONG
FUNCTION GetRect (BYVAL hStatusBar AS HWND, BYVAL nPart AS DWORD) AS RECT

Parameters

NameDescription
hStatusBarThe handle of the status bar control.
nPartZero-based index of the part whose bounding rectangle is to be retrieved.
lprcPointer to a RECT structure that receives the bounding rectangle.
rcA RECT structure that receives the bounding rectangle.

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

Retrieves the bounding rectangle of a part in a status window.

Reference

  • Include file CStatusBar.inc
  • Defined in AfxNova/CStatusBar.inc:146
  • Documented in Windows/WIndows Controls/CStatusBar Class.md
  • Topic: CStatusBar Class