Trait winsafe::prelude::shell_ITaskbarList3
source · 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.
Object Safety§
This trait is not object safe.