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§

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<()>

Object Safety§

This trait is not object safe.

Implementors§