Freigeben über


CReBarCtrl::RestoreBand

Resizes a band in a rebar control to its ideal size.

void RestoreBand(
   UINT uBand
);

Parameters

  • uBand
    Zero-based index of the band to be maximized.

Remarks

Implements the behavior of the Win32 message RB_MAXIMIZEBAND with fIdeal set to 1, as described in the Windows SDK.

Example

CReBarCtrl& refReBarCtrl = m_wndReBar.GetReBarCtrl();
UINT nCount = refReBarCtrl.GetBandCount();

for (UINT i = 0; i < nCount; i++)
   refReBarCtrl.RestoreBand(i);   

Requirements

Header: afxcmn.h

See Also

Reference

CReBarCtrl Class

Hierarchy Chart

CReBarCtrl::MaximizeBand

CReBarCtrl::MinimizeBand

Other Resources

CReBarCtrl Members