int id; if (childID == ACC.CHILDID_SELF) id = COM.CHILDID_SELF; else if (control instanceof Tree) {  id = childID; if (OS.COMCTL32_MAJOR >= 6) id++; } else id = childID + 1; COM.NotifyWinEvent (COM.EVENT_OBJECT_FOCUS, control.handle, COM.OBJID_CLIENT, id);
COM.NotifyWinEvent (COM.EVENT_OBJECT_FOCUS, control.handle, COM.OBJID_CLIENT, childIDToOs(childID));
	public void setFocus(int childID) {		checkWidget();		int id;		if (childID == ACC.CHILDID_SELF) id = COM.CHILDID_SELF;		else if (control instanceof Tree) {			/*			* Feature of Windows:			* In versions of Windows prior to XP, the childID of a tree item			* is the tree item handle. On XP, the childID is a 1-based index.			*/			id = childID;			if (OS.COMCTL32_MAJOR >= 6) id++;		}		else id = childID + 1; // All other childIDs are 1-based indices		COM.NotifyWinEvent (COM.EVENT_OBJECT_FOCUS, control.handle, COM.OBJID_CLIENT, id);	}