pub trait shell_ITaskbarList3: shell_ITaskbarList2 {
// Provided methods
fn RegisterTab(&self, hwnd_tab: &HWND, hwnd_mdi: &HWND) -> HrResult<()> { ... }
fn SetOverlayIcon(
&self,
hwnd: &HWND,
hicon: Option<&HICON>,
description: &str,
) -> HrResult<()> { ... }
fn SetProgressState(&self, hwnd: &HWND, tbpf_flags: TBPF) -> HrResult<()> { ... }
fn SetProgressValue(
&self,
hwnd: &HWND,
completed: u64,
total: u64,
) -> HrResult<()> { ... }
fn SetTabActive(&self, hwnd_tab: &HWND, hwnd_mdi: &HWND) -> HrResult<()> { ... }
fn SetTabOrder(
&self,
hwnd_tab: &HWND,
hwnd_insert_before: &HWND,
) -> HrResult<()> { ... }
fn SetThumbnailClip(&self, hwnd: &HWND, clip: Option<RECT>) -> HrResult<()> { ... }
fn SetThumbnailTooltip(
&self,
hwnd: &HWND,
tip: Option<&str>,
) -> HrResult<()> { ... }
}
Available on crate features
kernel
and shell
only.Expand description
This trait is enabled with the shell
feature, and provides methods for
ITaskbarList3
.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
Sourcefn RegisterTab(&self, hwnd_tab: &HWND, hwnd_mdi: &HWND) -> HrResult<()>
fn RegisterTab(&self, hwnd_tab: &HWND, hwnd_mdi: &HWND) -> HrResult<()>
ITaskbarList3::RegisterTab
method.
Sourcefn SetOverlayIcon(
&self,
hwnd: &HWND,
hicon: Option<&HICON>,
description: &str,
) -> HrResult<()>
fn SetOverlayIcon( &self, hwnd: &HWND, hicon: Option<&HICON>, description: &str, ) -> HrResult<()>
ITaskbarList3::SetOverlayIcon
method.
Sourcefn SetProgressState(&self, hwnd: &HWND, tbpf_flags: TBPF) -> HrResult<()>
fn SetProgressState(&self, hwnd: &HWND, tbpf_flags: TBPF) -> HrResult<()>
ITaskbarList3::SetProgressState
method.
Sourcefn SetProgressValue(
&self,
hwnd: &HWND,
completed: u64,
total: u64,
) -> HrResult<()>
fn SetProgressValue( &self, hwnd: &HWND, completed: u64, total: u64, ) -> HrResult<()>
ITaskbarList3::SetProgressValue
method.
§Examples
Setting progress to 50%:
use winsafe::{self as w, prelude::*};
let tbar: w::ITaskbarList3; // initialized somewhere
let hwnd: w::HWND;
tbar.SetProgressValue(&hwnd, 50, 100)?;
Sourcefn SetTabActive(&self, hwnd_tab: &HWND, hwnd_mdi: &HWND) -> HrResult<()>
fn SetTabActive(&self, hwnd_tab: &HWND, hwnd_mdi: &HWND) -> HrResult<()>
ITaskbarList3::SetTabActive
method.
Sourcefn SetTabOrder(
&self,
hwnd_tab: &HWND,
hwnd_insert_before: &HWND,
) -> HrResult<()>
fn SetTabOrder( &self, hwnd_tab: &HWND, hwnd_insert_before: &HWND, ) -> HrResult<()>
ITaskbarList3::SetTabOrder
method.
Sourcefn SetThumbnailClip(&self, hwnd: &HWND, clip: Option<RECT>) -> HrResult<()>
fn SetThumbnailClip(&self, hwnd: &HWND, clip: Option<RECT>) -> HrResult<()>
ITaskbarList3::SetThumbnailClip
method.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.