コード例 #1
0
 /// <summary>
 /// Set progress state in the taskbar item of your application
 /// </summary>
 /// <param name="Handle">The associated handle</param>
 /// <param name="state">The progress state</param>
 public void SetProgressState(IntPtr Handle, TaskBarProgressState state)
 {
     taskbar.SetProgressState(Handle, state);
 }
コード例 #2
0
 /// <summary>
 /// Set progress state in the taskbar item of your application
 /// </summary>
 /// <param name="state">The progress state</param>
 public void SetProgressState(TaskBarProgressState state)
 {
     SetProgressState(MainHandle, state);
 }
コード例 #3
0
 /// <summary>
 ///     Sets the type and state of the progress indicator displayed on a taskbar
 ///     button.
 /// </summary>
 /// <param name="hWnd">
 ///     The handle of the window in which the progress of an operation is being
 ///     shown.
 /// </param>
 /// <param name="state">
 ///     The flag that control the current state of the progress button.
 /// </param>
 public static void SetState(IntPtr hWnd, TaskBarProgressState state) =>
 (TaskBar.TaskBarInstance as ComImports.ITaskBarList3)?.SetProgressState(hWnd, state);