private void SetIcon(Bitmap icon)
        {
            object oldObject = (object)_hdcBitmap;

            StatusBar.Animation(0, ref oldObject);
            NativeMethods.DeleteObject(_hdcBitmap);

            Bitmap b = ResizeImage(icon, 16);

            _hdcBitmap = b.GetHbitmap();
            object hdcObject = (object)_hdcBitmap;

            StatusBar.Animation(1, ref hdcObject);
        }
Beispiel #2
0
        public static void AddStatus(string message, Microsoft.VisualStudio.Shell.Interop.Constants?glyph = null)
        {
            StatusBar.IsFrozen(out int frozen);
            if (frozen == 0)
            {
                if (string.IsNullOrWhiteSpace(message))
                {
                    StatusBar.SetText(string.Empty);
                    return;
                }

                if (glyph != null && glyph.Value.ToString().StartsWith("SBAI_"))
                {
                    object icon = (short)glyph.Value;
                    StatusBar.Animation(1, ref icon);
                }
                StatusBar.SetText(message);
                LastStatusMessage = message;
            }
        }