* the tool bar to redraw and layout.  [1G0G7TV, 1G0FUJ5]
* the tool bar to redraw and layout.
public void setText (String string) {	checkWidget();	if (string == null) error (SWT.ERROR_NULL_ARGUMENT);	if ((style & SWT.SEPARATOR) != 0) return;	super.setText (string);	int hwnd = parent.handle;	int hHeap = OS.GetProcessHeap ();	TCHAR buffer = new TCHAR (parent.getCodePage (), string, true);	int byteCount = buffer.length () * TCHAR.sizeof;	int pszText = OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, byteCount);	OS.MoveMemory (pszText, buffer, byteCount); 	TBBUTTONINFO info = new TBBUTTONINFO ();	info.cbSize = TBBUTTONINFO.sizeof;	info.dwMask = OS.TBIF_TEXT | OS.TBIF_STYLE;	info.pszText = pszText;	info.fsStyle = (byte) (widgetStyle () | OS.BTNS_AUTOSIZE);	if (string.length () != 0) info.fsStyle |= OS.BTNS_SHOWTEXT;	OS.SendMessage (hwnd, OS.TB_SETBUTTONINFO, id, info);	OS.HeapFree (hHeap, 0, pszText);		/*	* Bug in Windows.  For some reason, when the font is set	* before any tool item has text, the tool items resize to	* a very small size.  Also, a tool item will only show text	* when text has already been set on one item and then a new	* item is created.  The fix is to use WM_SETFONT to force	* the tool bar to redraw and layout.  [1G0G7TV, 1G0FUJ5]	*/	int hFont = OS.SendMessage (hwnd, OS.WM_GETFONT, 0, 0);	OS.SendMessage (hwnd, OS.WM_SETFONT, hFont, 0);		parent.layoutItems ();}