public static void SetTaskBarIconProgressState(TaskBarState state) { if (TaskBarCustomizationSupported) { TaskBarList3Instance.SetProgressState(App.GetMainWindowHandle(), state); } }
/// <summary> /// Sets the state of the task bar. /// </summary> /// <param name="state">The new state.</param> public static void SetTaskBarState(TaskBarState state) { APPBARDATA _appBar = CreateAppBarData(); _appBar.lParam = (IntPtr)state; SHAppBarMessage(ABMsg.ABM_SETSTATE, ref _appBar); }
public static void SetTaskBarState(TaskBarState state) { AppBarData appBar = CreateAppBarData(); appBar.Parameter = (IntPtr)state; SHAppBarMessage(AbMsg.SetState, ref appBar); }
/// <summary> /// Sets the new <see cref="TaskBarState"/> of the taskbar. /// </summary> /// <param name="state"> /// The new state to set. /// </param> public static void SetState(TaskBarState state) { var data = new WinApi.AppBarData(); try { data.CbSize = (uint)Marshal.SizeOf(data); data.HWnd = WinApi.NativeMethods.FindWindow("System_TrayWnd", null); data.LParam = (int)state; WinApi.NativeMethods.SHAppBarMessage(WinApi.AppBarMessageOption.SetState, ref data); } finally { data.Dispose(); } }
/// <summary> /// Sets the state of the task bar. /// </summary> /// <param name="state">The new state.</param> public static void SetTaskBarState(TaskBarState state) { APPBARDATA appBar = CreateAppBarData(); appBar.lParam = (IntPtr)state; SHAppBarMessage(ABMsg.ABM_SETSTATE, ref appBar); }
internal static TaskbarProgressBarState ConvertState(TaskBarState state) { TaskbarProgressBarState result = (TaskbarProgressBarState)state; return(result); }