在menu.GetSubMenu(0)->TrackPopupMenu(TPM_LEFTALIGN,point.x,point.y,this,NULL);的上边添加 SetForegroundWindow();