private void listView_map_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e) { ListViewItem selection = this.listView_map.GetItemAt(e.X, e.Y); if (selection != null) { string strText = ""; int nRet = ListViewUtil.ColumnHitTest(this.listView_map, e.X); if (nRet == 0) { strText = "源: " + selection.SubItems[0].Text; } else if (nRet == 1) { strText = "目标" + selection.SubItems[1].Text; } this.toolTip_map.SetToolTip(this.listView_map, strText); } else { this.toolTip_map.SetToolTip(this.listView_map, null); } }