NetIde.Services.Shell.TaskDialog.ActiveTaskDialog.SetProgressBarPosition C# (CSharp) Method

SetProgressBarPosition() public method

Set the current position for a progress bar.
public SetProgressBarPosition ( int newPosition ) : int
newPosition int The new position.
return int
        public int SetProgressBarPosition( int newPosition )
        {
            // TDM_SET_PROGRESS_BAR_POS            = WM_USER+106, // wParam = new position
            return (int)NativeMethods.SendMessage (
                this.handle,
                (uint)NativeMethods.TASKDIALOG_MESSAGES.TDM_SET_PROGRESS_BAR_POS,
                (IntPtr)newPosition,
                IntPtr.Zero );
        }