fsState &= ~OS.TBSTATE_ENABLED; if (enabled) fsState |= OS.TBSTATE_ENABLED;
if (((fsState & OS.TBSTATE_ENABLED) != 0) == enabled) return; if (enabled) { fsState |= OS.TBSTATE_ENABLED; } else { fsState &= ~OS.TBSTATE_ENABLED; }
public void setEnabled (boolean enabled) {	checkWidget();	int hwnd = parent.handle;	int fsState = OS.SendMessage (hwnd, OS.TB_GETSTATE, id, 0);	fsState &= ~OS.TBSTATE_ENABLED;	if (enabled) fsState |= OS.TBSTATE_ENABLED;	OS.SendMessage (hwnd, OS.TB_SETSTATE, id, fsState);	if (image != null) updateImages ();}