diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-04-30 15:46:36 +0100 |
|---|---|---|
| committer | Alex-TIMEHACK <[email protected]> | 2017-04-30 15:46:36 +0100 |
| commit | 12c253ab76b8117a563b021e969262da13eaec9d (patch) | |
| tree | e6a99881473b838873ecc91659b480594bcfcff5 /TimeHACK.Engine/WindowManager.cs | |
| parent | c56b38e8b2b8729d91a1ad96839b042af480eabe (diff) | |
| download | histacom2-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.cs | 11 |
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(); |
