if (width == 0) width = DEFAULT_WIDTH; if (height == 0) height = DEFAULT_HEIGHT; if (wHint != SWT.DEFAULT) width = wHint; if (hHint != SWT.DEFAULT) height = hHint; int border = getBorderWidth (); width += border * 2; height += border * 2;
public Point computeSize (int wHint, int hHint, boolean changed) {	checkWidget ();	int width = 64, height = 64;	if ((style & SWT.CALENDAR) != 0) {		RECT rect = new RECT ();		OS.SendMessage(handle, OS.MCM_GETMINREQRECT, 0, rect);		width = rect.right;		height = rect.bottom;	}	return new Point (width, height);}