Provides helper methods and API calls specific to the Windows 7 or newer taskbar.
More...
|
static void | SetProgressState (IntPtr handle, ProgressBarState state) |
| Sets the state of the taskbar progress indicator. More...
|
|
static void | SetProgressValue (IntPtr handle, int currentValue, int maximumValue) |
| Sets the value of the taskbar progress indicator. More...
|
|
static void | SetWindowAppID (IntPtr hwnd, [Localizable(false)] string appID, [Localizable(false)] string? relaunchCommand=null, [Localizable(false)] string? relaunchIcon=null, [Localizable(true)] string? relaunchName=null) |
| Sets a specific window's explicit application user model ID. More...
|
|
static void | AddTaskLinks ([Localizable(false)] string appID, IEnumerable< ShellLink > links) |
| Adds user-task links to the taskbar jumplist. Any existing task links are removed. More...
|
|
static void | PreventPinning (IntPtr hwnd) |
| Prevents a specific window from being pinned to the taskbar. More...
|
|
Provides helper methods and API calls specific to the Windows 7 or newer taskbar.
◆ ProgressBarState
Represents the thumbnail progress bar state.
Enumerator |
---|
NoProgress | No progress is displayed.
|
Indeterminate | The progress is indeterminate (marquee).
|
Normal | Normal progress is displayed.
|
Error | An error occurred (red).
|
Paused | The operation is paused (yellow).
|
◆ AddTaskLinks()
static void NanoByte.Common.Native.WindowsTaskbar.AddTaskLinks |
( |
[Localizable(false)] string |
appID, |
|
|
IEnumerable< ShellLink > |
links |
|
) |
| |
|
inlinestatic |
Adds user-task links to the taskbar jumplist. Any existing task links are removed.
- Parameters
-
appID | The application ID of the jumplist to add the task to. |
links | The links to add to the jumplist. |
◆ PreventPinning()
static void NanoByte.Common.Native.WindowsTaskbar.PreventPinning |
( |
IntPtr |
hwnd | ) |
|
|
inlinestatic |
Prevents a specific window from being pinned to the taskbar.
- Parameters
-
hwnd | A handle to the window to prevent from being pinned. |
◆ SetProgressState()
static void NanoByte.Common.Native.WindowsTaskbar.SetProgressState |
( |
IntPtr |
handle, |
|
|
ProgressBarState |
state |
|
) |
| |
|
inlinestatic |
Sets the state of the taskbar progress indicator.
- Parameters
-
handle | The handle of the window whose taskbar button contains the progress indicator. |
state | The state of the progress indicator. |
◆ SetProgressValue()
static void NanoByte.Common.Native.WindowsTaskbar.SetProgressValue |
( |
IntPtr |
handle, |
|
|
int |
currentValue, |
|
|
int |
maximumValue |
|
) |
| |
|
inlinestatic |
Sets the value of the taskbar progress indicator.
- Parameters
-
handle | The handle of the window whose taskbar button contains the progress indicator. |
currentValue | The current value of the progress indicator. |
maximumValue | The value currentValue will have when the operation is complete. |
◆ SetWindowAppID()
static void NanoByte.Common.Native.WindowsTaskbar.SetWindowAppID |
( |
IntPtr |
hwnd, |
|
|
[Localizable(false)] string |
appID, |
|
|
[Localizable(false)] string? |
relaunchCommand = null , |
|
|
[Localizable(false)] string? |
relaunchIcon = null , |
|
|
[Localizable(true)] string? |
relaunchName = null |
|
) |
| |
|
inlinestatic |
Sets a specific window's explicit application user model ID.
- Parameters
-
hwnd | A handle to the window to set the ID for. |
appID | The application ID to set. |
relaunchCommand | The command to use for relaunching this specific window if it was pinned to the taskbar; can be null . |
relaunchIcon | The icon to use for pinning this specific window to the taskbar (written as Path,ResourceIndex); can be null . |
relaunchName | The user-friendly name to associate with relaunchCommand ; can be null . |
The application ID is used to group related windows in the taskbar.
The documentation for this class was generated from the following file:
- Common/Native/WindowsTaskbar.cs