boolean wasActive = active; active = (fShow != 0); if (wasActive != active){ if (active) { activateInPlaceClient(); } else { deactivateInPlaceClient(); } }
private int OnShowWindow(int fShow) {	boolean wasActive = active;	active = (fShow != 0);	if (wasActive != active){		if (active) {			activateInPlaceClient();		} else {			deactivateInPlaceClient();		}	}	return COM.S_OK;}