Beispiel #1
0
        internal override void SystrayBalloon(IntPtr handle, int timeout, string title, string text, ToolTipIcon icon)
        {
            Control control = Control.FromHandle(handle);

            if (control == null)
            {
                return;
            }

            if (balloon_window != null)
            {
                balloon_window.Close();
                balloon_window.Dispose();
            }

            balloon_window         = new NotifyIcon.BalloonWindow(handle);
            balloon_window.Title   = title;
            balloon_window.Text    = text;
            balloon_window.Timeout = timeout;
            balloon_window.Show();

            SendMessage(handle, Msg.WM_USER, IntPtr.Zero, (IntPtr)Msg.NIN_BALLOONSHOW);
        }
 public BalloonWindowProvider(NotifyIcon.BalloonWindow window) : base(window)
 {
     balloon = window;
 }