Struct TASKDIALOGCONFIG

Source
pub struct TASKDIALOGCONFIG<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p> {
Show 20 fields pub hwnd_parent: Option<&'a HWND>, pub hinstance: Option<&'b HINSTANCE>, pub flags: TDF, pub common_buttons: TDCBF, pub window_title: Option<&'c str>, pub main_icon: IconIdTd<'d>, pub main_instruction: Option<&'e str>, pub content: Option<&'f str>, pub buttons: &'g [(u16, &'h str)], pub default_button_id: u16, pub radio_buttons: &'i [(u16, &'j str)], pub default_radio_button_id: u16, pub verification_text: Option<&'k str>, pub more_info: Option<&'l str>, pub more_info_btn_expanded: Option<&'m str>, pub more_info_btn_collapsed: Option<&'n str>, pub footer_icon: IconId<'o>, pub footer_text: Option<&'p str>, pub callback: Option<Box<dyn Fn(&HWND, Tdn) -> HRESULT>>, pub width: u32,
}
Available on crate feature comctl only.
Expand description

TASKDIALOGCONFIG struct.

Used with TaskDialogIndirect function.

Not all flags constants are available, some of them are automatically set as you fill other parameters.

Fields§

§hwnd_parent: Option<&'a HWND>§hinstance: Option<&'b HINSTANCE>§flags: TDF§common_buttons: TDCBF

Predefined buttons. Will be placed after the custom buttons.

§window_title: Option<&'c str>

Window caption. If not specified, the .exe name is used.

§main_icon: IconIdTd<'d>§main_instruction: Option<&'e str>

Text shown before the main content, in a larger font.

§content: Option<&'f str>

The main text of the dialog.

§buttons: &'g [(u16, &'h str)]

Command ID and button text. Will be placed before the predefined common_buttons.

§default_button_id: u16

Any ID from common_buttons or buttons.

§radio_buttons: &'i [(u16, &'j str)]

Command ID and radio button text.

§default_radio_button_id: u16

Any ID from radio_buttons.

§verification_text: Option<&'k str>

Text of the label of the verification check box.

§more_info: Option<&'l str>

Text of the collapsible section.

§more_info_btn_expanded: Option<&'m str>

Text of the button that expands/collapses more_info, when the section is expanded.

§more_info_btn_collapsed: Option<&'n str>

Text of the button that expands/collapses more_info, when the section is collapsed.

§footer_icon: IconId<'o>§footer_text: Option<&'p str>§callback: Option<Box<dyn Fn(&HWND, Tdn) -> HRESULT>>§width: u32

Trait Implementations§

Source§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p> Default for TASKDIALOGCONFIG<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p>

Source§

fn default() -> TASKDIALOGCONFIG<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p> Freeze for TASKDIALOGCONFIG<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p>

§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p> !RefUnwindSafe for TASKDIALOGCONFIG<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p>

§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p> !Send for TASKDIALOGCONFIG<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p>

§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p> !Sync for TASKDIALOGCONFIG<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p>

§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p> Unpin for TASKDIALOGCONFIG<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p>

§

impl<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p> !UnwindSafe for TASKDIALOGCONFIG<'a, 'b, 'c, 'd, 'e, 'f, 'g, 'h, 'i, 'j, 'k, 'l, 'm, 'n, 'o, 'p>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.