Partager via


CToolBarCtrl::GetRect

Retrieves the bounding rectangle for a specified toolbar button.

BOOL GetRect(
   int nID,
   LPRECT lpRect 
) const;

Parameters

  • nID
    The button identifier.

  • lpRect
    A pointer to a RECT structure to receive the bounding rectangle information.

Return Value

TRUE if successful; otherwise FALSE.

Remarks

This member function implements the behavior of the Win32 message TB_GETRECT, as described in the Windows SDK.

Requirements

Header: afxcmn.h

See Also

Concepts

CToolBarCtrl Class

CToolBarCtrl Members

Hierarchy Chart