CReBarCtrl::SizeToRect

Implements the behavior of the Win32 message RB_SIZETORECT, as described in the Windows SDK.

BOOL SizeToRect( 
   CRect& rect  
);

Parameters

  • rect
    A reference to a CRect object that specifies the rectangle that the rebar control should be sized to.

Return Value

Nonzero if successful; otherwise zero.

Remarks

Note that this member function uses a CRect object as a parameter, rather than a RECT structure.

Requirements

Header: afxcmn.h

See Also

Reference

CReBarCtrl Class

Hierarchy Chart

CReBarCtrl::GetRect