rbBand.fStyle &= ~OS.RBBS_BREAK; OS.SendMessage (handle, OS.RB_SETBANDINFO, i, rbBand);
if ((rbBand.fStyle & OS.RBBS_BREAK) != 0) { resizeToPreferredWidth (i - 1); rbBand.fStyle &= ~OS.RBBS_BREAK; OS.SendMessage (handle, OS.RB_SETBANDINFO, i, rbBand); }
public void setWrapIndices (int [] indices) {	checkWidget ();	if (indices == null) indices = new int [0];	int count = OS.SendMessage (handle, OS.RB_GETBANDCOUNT, 0, 0);	for (int i=0; i<indices.length; i++) {		if (indices [i] < 0 || indices [i] >= count) {			error (SWT.ERROR_INVALID_RANGE);		}		}	REBARBANDINFO rbBand = new REBARBANDINFO ();	rbBand.cbSize = REBARBANDINFO.sizeof;	rbBand.fMask = OS.RBBIM_STYLE;	for (int i=0; i<count; i++) {		OS.SendMessage (handle, OS.RB_GETBANDINFO, i, rbBand);		rbBand.fStyle &= ~OS.RBBS_BREAK;		OS.SendMessage (handle, OS.RB_SETBANDINFO, i, rbBand);	}	/*	* Resize the last item in the row to the maximum size.	*/	rbBand.fMask = OS.RBBIM_SIZE;	rbBand.cx = MAX_WIDTH;	OS.SendMessage (handle, OS.RB_SETBANDINFO, count - 1, rbBand);	for (int i=0; i<indices.length; i++) {		rbBand.fMask = OS.RBBIM_STYLE;				OS.SendMessage (handle, OS.RB_GETBANDINFO, indices [i], rbBand);		rbBand.fStyle |= OS.RBBS_BREAK;		OS.SendMessage (handle, OS.RB_SETBANDINFO, indices [i], rbBand);		/*		* Ensure that the last item in the previous row is at the maximum size.		*/			rbBand.fMask = OS.RBBIM_SIZE;		rbBand.cx = MAX_WIDTH;		OS.SendMessage (handle, OS.RB_SETBANDINFO, indices [i] - 1, rbBand);	}}