aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Engine/WindowManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'TimeHACK.Engine/WindowManager.cs')
-rw-r--r--TimeHACK.Engine/WindowManager.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/TimeHACK.Engine/WindowManager.cs b/TimeHACK.Engine/WindowManager.cs
index 0ba5d99..a3baf42 100644
--- a/TimeHACK.Engine/WindowManager.cs
+++ b/TimeHACK.Engine/WindowManager.cs
@@ -52,6 +52,17 @@ namespace TimeHACK.Engine
app.minimizebutton.Location = new Point(app.minimizebutton.Location.X, app.minimizebutton.Location.Y);
}
+ // Time for the taskbar
+
+ // Convert an image to an icon
+ Bitmap theBitmap = new Bitmap(icon, new Size(icon.Width, icon.Height));
+ IntPtr Hicon = theBitmap.GetHicon();// Get an Hicon for myBitmap.
+ Icon newIcon = Icon.FromHandle(Hicon);// Create a new icon from the handle.
+
+ app.Tag = TaskBarController.AvalibleApplicationID;
+ app.Text = title;
+ app.Icon = newIcon;
+
// Show the app
app.Show();
app.BringToFront();