bool IActiveTaskDialog.SetProgressBarState(VistaProgressBarState newState) { // TODO Support progress bar state colors on the emulated form // Might be able to do it with some triggers... binding directly to the //Foreground property will overwrite default OS progress bar color return(false); }
/// <summary> /// Sets the state of the progress bar. /// </summary> /// <param name="newState">The state to set the progress bar.</param> /// <returns>If the function succeeds the return value is true.</returns> public bool SetProgressBarState(VistaProgressBarState newState) { // TDM_SET_PROGRESS_BAR_STATE = WM_USER+104, // wParam = new progress state return(VistaUnsafeNativeMethods.SendMessage( this.handle, (uint)VistaUnsafeNativeMethods.TASKDIALOG_MESSAGES.TDM_SET_PROGRESS_BAR_STATE, (IntPtr)newState, IntPtr.Zero) != IntPtr.Zero); // Future: get more detailed error from and throw. }
/// <summary> /// Sets the state of the progress bar. /// </summary> /// <param name="newState">The state to set the progress bar.</param> /// <returns>If the function succeeds the return value is true.</returns> public bool SetProgressBarState(VistaProgressBarState newState) { // TDM_SET_PROGRESS_BAR_STATE = WM_USER+104, // wParam = new progress state return VistaUnsafeNativeMethods.SendMessage( this.handle, (uint)VistaUnsafeNativeMethods.TASKDIALOG_MESSAGES.TDM_SET_PROGRESS_BAR_STATE, (IntPtr)newState, IntPtr.Zero) != IntPtr.Zero; // Future: get more detailed error from and throw. }
bool IActiveTaskDialog.SetProgressBarState(VistaProgressBarState newState) { // TODO Support progress bar state colors on the emulated form // Might be able to do it with some triggers... binding directly to the //Foreground property will overwrite default OS progress bar color return false; }