SetForegroundWindow(FParentForm.Handle); GetCursorPos(Point); IconPopupMenu.Popup(Point.x, Point.y); 你在显示菜单之前,加上第一行代码