Trait 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§

Source

fn RegisterTab(&self, hwnd_tab: &HWND, hwnd_mdi: &HWND) -> HrResult<()>

Source

fn SetOverlayIcon( &self, hwnd: &HWND, hicon: Option<&HICON>, description: &str, ) -> HrResult<()>

Source

fn SetProgressState(&self, hwnd: &HWND, tbpf_flags: TBPF) -> HrResult<()>

Source

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)?;
Source

fn SetTabActive(&self, hwnd_tab: &HWND, hwnd_mdi: &HWND) -> HrResult<()>

Source

fn SetTabOrder( &self, hwnd_tab: &HWND, hwnd_insert_before: &HWND, ) -> HrResult<()>

Source

fn SetThumbnailClip(&self, hwnd: &HWND, clip: Option<RECT>) -> HrResult<()>

Source

fn SetThumbnailTooltip(&self, hwnd: &HWND, tip: Option<&str>) -> HrResult<()>

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.

Implementors§