Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
BOOL SetBandInfo( UINT uBand**, REBARBANDINFO*** prbbi );
Return Value
Nonzero if successful; otherwise zero.
Parameters
uBand
Zero-based index of the band to receive the new settings.
prbbi
Pointer to a structure that defines the band to be inserted. You must set the cbSize member of this structure to sizeof(REBARBANDINFO)
before sending this message.
Remarks
This member function implements the behavior of the Win32 message , as described in the Platform SDK.
Example
int nCount = m_wndReBar.GetReBarCtrl().GetBandCount();
CString strText = "Band #:";
for (int i=0; i<nCount; i++)
{
LPREBARBANDINFO prbbi =
(LPREBARBANDINFO)alloca(sizeof(REBARBANDINFO));
prbbi->cbSize = sizeof(REBARBANDINFO);
CString strText;
strText.Format("Band #: %d", i);
LPTSTR lpszText = strText.GetBuffer(strText.GetLength());
prbbi->lpText = lpszText;
prbbi->cch = strlen(lpszText) + 1;
prbbi->fMask = RBBIM_TEXT;
m_wndReBar.GetReBarCtrl().SetBandInfo(i, prbbi);
strText.ReleaseBuffer();
}
CReBarCtrl Overview | Class Members | Hierarchy Chart
See Also CReBarCtrl::GetBandInfo