return new Point (rbBand.cxIdeal, rbBand.cyMinChild);
RECT rect = new RECT (); OS.SendMessage (hwnd, OS.RB_GETBANDBORDERS, index, rect); int width = rbBand.cxIdeal + rect.left + rect.right; return new Point (width, rbBand.cyMinChild);
public Point getPreferredSize () {	checkWidget ();	int index = parent.indexOf (this);	if (index == -1) return null;	int hwnd = parent.handle;	REBARBANDINFO rbBand = new REBARBANDINFO ();	rbBand.cbSize = REBARBANDINFO.sizeof;	rbBand.fMask = OS.RBBIM_CHILDSIZE | OS.RBBIM_IDEALSIZE;	OS.SendMessage (hwnd, OS.RB_GETBANDINFO, index, rbBand);	return new Point (rbBand.cxIdeal, rbBand.cyMinChild);}