mirror of
https://github.com/ckaczor/wpf-notifyicon.git
synced 2026-02-16 11:08:30 -05:00
git-svn-id: https://svn.evolvesoftware.ch/repos/evolve.net/WPF/NotifyIcon@170 9f600761-6f11-4665-b6dc-0185e9171623
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Drawing;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Hardcodet.Wpf.TaskbarNotification.Interop
|
namespace Hardcodet.Wpf.TaskbarNotification.Interop
|
||||||
@@ -48,7 +47,7 @@ namespace Hardcodet.Wpf.TaskbarNotification.Interop
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A handle to the icon that should be displayed. Just
|
/// A handle to the icon that should be displayed. Just
|
||||||
/// <see cref="Icon.Handle"/>.
|
/// <c>Icon.Handle</c>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public IntPtr IconHandle;
|
public IntPtr IconHandle;
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Hardcodet.Wpf.TaskbarNotification.Interop
|
namespace Hardcodet.Wpf.TaskbarNotification.Interop
|
||||||
{
|
{
|
||||||
@@ -190,7 +191,11 @@ namespace Hardcodet.Wpf.TaskbarNotification.Interop
|
|||||||
|
|
||||||
if (MessageWindowHandle == IntPtr.Zero)
|
if (MessageWindowHandle == IntPtr.Zero)
|
||||||
{
|
{
|
||||||
|
#if SILVERLIGHT
|
||||||
|
throw new Exception("Message window handle was not a valid pointer.");
|
||||||
|
#else
|
||||||
throw new Win32Exception();
|
throw new Win32Exception();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user