int width = wHint, height = hHint; if (wHint == SWT.DEFAULT) width = 32; if (hHint == SWT.DEFAULT) height = 32;
public Point computeSize (int wHint, int hHint) {	checkWidget ();	int index = parent.indexOf (this);	if (index == -1) return new Point (0, 0);	int width = wHint, height = hHint;	if (wHint == SWT.DEFAULT) width = 32;	if (hHint == SWT.DEFAULT) height = 32;	int hwnd = parent.handle;	RECT rect = new RECT ();	OS.SendMessage (hwnd, OS.RB_GETBANDBORDERS, index, rect);	width += rect.left + rect.right;	height += rect.top + rect.bottom;	if (index == 0) {		REBARBANDINFO rbBand = new REBARBANDINFO ();		rbBand.cbSize = REBARBANDINFO.sizeof;		rbBand.fMask = OS.RBBIM_HEADERSIZE;		OS.SendMessage (hwnd, OS.RB_GETBANDINFO, index, rbBand);		width = width - rbBand.cxHeader + 1;	}	return new Point (width, height);}