state = STATE_UIACTIVE; int[] phwnd = new int[1]; if (objIOleInPlaceObject.GetWindow(phwnd) == COM.S_OK) { OS.SetWindowPos(phwnd[0], OS.HWND_TOP, 0, 0, 0, 0, OS.SWP_NOSIZE | OS.SWP_NOMOVE); }
private int OnUIActivate() {	return COM.S_OK;}