diff options
| author | lempamo <[email protected]> | 2017-03-26 10:45:00 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-03-26 10:45:00 -0400 |
| commit | b29562151521fcceeeb394fdff7842bcc34bfa27 (patch) | |
| tree | 5691328e5d8c59f661fff63634aafa69b622aa6a | |
| parent | 12cbfd0fddbef7ed458fa19be5768af62195f3ac (diff) | |
| download | histacom2-b29562151521fcceeeb394fdff7842bcc34bfa27.tar.gz histacom2-b29562151521fcceeeb394fdff7842bcc34bfa27.tar.bz2 histacom2-b29562151521fcceeeb394fdff7842bcc34bfa27.zip | |
fixing desktop ie icon
| -rw-r--r-- | TimeHACK.Main/Windows95.cs | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/TimeHACK.Main/Windows95.cs b/TimeHACK.Main/Windows95.cs index c2592b8..d262985 100644 --- a/TimeHACK.Main/Windows95.cs +++ b/TimeHACK.Main/Windows95.cs @@ -140,12 +140,22 @@ namespace TimeHACK private void desktopicons_Click(object sender, EventArgs e) { - if (desktopicons.SelectedItems.ContainsKey("Internet Explorer")) + Point objDrawingPoint = desktopicons.PointToClient(Cursor.Position); + ListViewItem objListViewItem; + + if (objDrawingPoint != null) { - WinClassicIE4 ie = new WinClassicIE4(); - ie.Show(); - ie.BringToFront(); - startmenu.Hide(); + objListViewItem = desktopicons.GetItemAt(objDrawingPoint.X, objDrawingPoint.Y); + if (objListViewItem != null) + { + if (objListViewItem.Text == "Internet Explorer") + { + WinClassicIE4 ie = new WinClassicIE4(); + ie.Show(); + ie.BringToFront(); + startmenu.Hide(); + } + } } } } |
