aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Engine/WindowManager.cs
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-04-30 15:46:36 +0100
committerAlex-TIMEHACK <[email protected]>2017-04-30 15:46:36 +0100
commit12c253ab76b8117a563b021e969262da13eaec9d (patch)
treee6a99881473b838873ecc91659b480594bcfcff5 /TimeHACK.Engine/WindowManager.cs
parentc56b38e8b2b8729d91a1ad96839b042af480eabe (diff)
downloadhistacom2-12c253ab76b8117a563b021e969262da13eaec9d.tar.gz
histacom2-12c253ab76b8117a563b021e969262da13eaec9d.tar.bz2
histacom2-12c253ab76b8117a563b021e969262da13eaec9d.zip
Half done the taskbars
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();