RECT rect = new RECT (); OS.SendMessage (hwnd, OS.RB_GETRECT, index, rect); int width = rect.right - rect.left; int height = rect.bottom - rect.top;
REBARBANDINFO rbBand = new REBARBANDINFO (); rbBand.cbSize = REBARBANDINFO.sizeof; rbBand.fMask = OS.RBBIM_SIZE | OS.RBBIM_CHILDSIZE; OS.SendMessage (hwnd, OS.RB_GETBANDINFO, index, rbBand); int width = rbBand.cx; int height = rbBand.cyMinChild;
public Point getSize() {	checkWidget ();	int index = parent.indexOf (this);	if (index == -1) return null;	int hwnd = parent.handle;	RECT rect = new RECT ();	OS.SendMessage (hwnd, OS.RB_GETRECT, index, rect);	int width = rect.right - rect.left;	int height = rect.bottom - rect.top;	return new Point (width, height);}