internal void UpdateProgressBarRange() { AssertCurrentlyShowing(); // Build range LPARAM - note it is in REVERSE intuitive order. long range = NativeTaskDialog.MakeLongLParam( settings.ProgressBarMaximum, settings.ProgressBarMinimum); SendMessageHelper(TaskDialogNativeMethods.TASKDIALOG_MESSAGES.TDM_SET_PROGRESS_BAR_RANGE, 0, range); }
internal void UpdateProgressBarRange() { AssertCurrentlyShowing(); // Build range LPARAM - note it is in REVERSE intuitive order. long range = NativeTaskDialog.MakeLongLParam( settings.ProgressBarMaximum, settings.ProgressBarMinimum); SendMessageHelper(TaskDialogNativeMethods.TaskDialogMessages.SetProgressBarRange, 0, range); }
internal void UpdateProgressBarRange(int?min = null, int?max = null) { AssertCurrentlyShowing(); if (min.HasValue) { settings.ProgressBarMinimum = min.Value; } if (max.HasValue) { settings.ProgressBarMaximum = max.Value; } // Build range LPARAM - note it is in REVERSE intuitive order. var range = NativeTaskDialog.MakeLongLParam(settings.ProgressBarMaximum, settings.ProgressBarMinimum); SendMessageHelper(TaskDialogNativeMethods.TaskDialogMessages.SetProgressBarRange, 0, range); }