コード例 #1
0
        /// <summary>
        /// Initializes an instance of this class
        /// </summary>
        /// <param name="icon">The icon to use for this button</param>
        /// <param name="tooltip">The tooltip string to use for this button.</param>
        public ThumbnailToolbarButton(Icon icon, string tooltip)
        {
            // Start internal update (so we don't accidently update the taskbar
            // via the native API)
            internalUpdate = true;

            // Set our id
            Id = nextId;

            // increment the ID
            if (nextId == Int32.MaxValue)
            {
                nextId = 101; // our starting point
            }
            else
            {
                nextId++;
            }

            // Set user settings
            Icon    = icon;
            Tooltip = tooltip;

            // Defaults
            Enabled = true;

            // Create a native
            win32ThumbButton = new THUMBBUTTON();

            // End our internal update
            internalUpdate = false;
        }
コード例 #2
0
        /// <summary>
        /// Initializes an instance of this class
        /// </summary>
        /// <param name="icon">The icon to use for this button</param>
        /// <param name="tooltip">The tooltip string to use for this button.</param>
        public ThumbnailToolbarButton(Icon icon, string tooltip)
        {
            // Start internal update (so we don't accidently update the taskbar
            // via the native API)
            internalUpdate = true;

            // Set our id
            Id = nextId;

            // increment the ID
            if (nextId == Int32.MaxValue)
                nextId = 101; // our starting point
            else
                nextId++;

            // Set user settings
            Icon = icon;
            Tooltip = tooltip;

            // Defaults
            Enabled = true;

            // Create a native
            win32ThumbButton = new THUMBBUTTON();

            // End our internal update
            internalUpdate = false;
        }
コード例 #3
0
        public ThumbnailToolbarButton(Icon icon, string tooltip)
        {
            // Set our id
            Id = _nextId;

            // increment the ID
            if (_nextId == Int32.MaxValue)
            {
                _nextId = 101; // our starting point
            }
            else
            {
                _nextId++;
            }

            // Set user settings
            Icon    = icon;
            Tooltip = tooltip;

            // Create a native
            _win32ThumbButton = new THUMBBUTTON();
        }