mirror of
https://github.com/ckaczor/wpf-notifyicon.git
synced 2026-01-18 01:35:38 -05:00
FIX Interop using Unicode in order to support for long strings / asian languages. (NTFY-11)
git-svn-id: https://svn.evolvesoftware.ch/repos/evolve.net/WPF/NotifyIcon@182 9f600761-6f11-4665-b6dc-0185e9171623
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Hardcodet.Wpf.TaskbarNotification.Interop
|
||||
/// values of the <see cref="IconDataMembers"/>
|
||||
/// that were defined.
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
|
||||
public struct NotifyIconData
|
||||
{
|
||||
/// <summary>
|
||||
@@ -134,7 +134,7 @@ namespace Hardcodet.Wpf.TaskbarNotification.Interop
|
||||
{
|
||||
//we need to set another size on xp/2003- otherwise certain
|
||||
//features (e.g. balloon tooltips) don't work.
|
||||
data.cbSize = 504;
|
||||
data.cbSize = 952; // NOTIFYICONDATAW_V3_SIZE
|
||||
|
||||
//set to fixed timeout
|
||||
data.VersionOrTimeout = 10;
|
||||
|
||||
Reference in New Issue
Block a user