void setScrollWidth (int width) {
void setScrollWidth () {
void setScrollWidth (int width) {	if (hwndHeader == 0 || hwndParent == 0) return;	//TEMPORARY CODE	//scrollWidth = width;	int left = 0;	RECT rect = new RECT ();	SCROLLINFO info = new SCROLLINFO ();	info.cbSize = SCROLLINFO.sizeof;	info.fMask = OS.SIF_RANGE | OS.SIF_PAGE;	if (width == 0) {		OS.GetScrollInfo (hwndParent, OS.SB_HORZ, info);		info.nPage = info.nMax + 1;		OS.SetScrollInfo (hwndParent, OS.SB_HORZ, info, true);		OS.GetScrollInfo (hwndParent, OS.SB_VERT, info);		info.nPage = info.nMax + 1;		OS.SetScrollInfo (hwndParent, OS.SB_VERT, info, true);	} else {		OS.GetClientRect (hwndParent, rect);		OS.GetScrollInfo (hwndParent, OS.SB_HORZ, info);		info.nMax = width;		info.nPage = rect.right - rect.left + 1;		OS.SetScrollInfo (hwndParent, OS.SB_HORZ, info, true);		info.fMask = OS.SIF_POS;		OS.GetScrollInfo (hwndParent, OS.SB_HORZ, info);		left = info.nPos;	}	OS.GetClientRect (hwndParent, rect);	int hHeap = OS.GetProcessHeap ();	HDLAYOUT playout = new HDLAYOUT ();	playout.prc = OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, RECT.sizeof);	playout.pwpos = OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, WINDOWPOS.sizeof);	OS.MoveMemory (playout.prc, rect, RECT.sizeof);	OS.SendMessage (hwndHeader, OS.HDM_LAYOUT, 0, playout);	WINDOWPOS pos = new WINDOWPOS ();	OS.MoveMemory (pos, playout.pwpos, WINDOWPOS.sizeof);	if (playout.prc != 0) OS.HeapFree (hHeap, 0, playout.prc);	if (playout.pwpos != 0) OS.HeapFree (hHeap, 0, playout.pwpos);	SetWindowPos (hwndHeader, OS.HWND_TOP, pos.x - left, pos.y, pos.cx + left, pos.cy, OS.SWP_NOACTIVATE);	int w = pos.cx + (width == 0 ? 0 : OS.GetSystemMetrics (OS.SM_CXVSCROLL));	int h = rect.bottom - rect.top - pos.cy;	boolean oldIgnore = ignoreResize;	ignoreResize = true;	SetWindowPos (handle, 0, pos.x - left, pos.y + pos.cy, w + left, h, OS.SWP_NOACTIVATE | OS.SWP_NOZORDER);	ignoreResize = oldIgnore;}