pub struct TaskDialogConfig {Show 23 fields
pub parent: HWND,
pub instance: HMODULE,
pub flags: TASKDIALOG_FLAGS,
pub common_buttons: TASKDIALOG_COMMON_BUTTON_FLAGS,
pub window_title: String,
pub main_instruction: String,
pub content: String,
pub verification_text: String,
pub expanded_information: String,
pub expanded_control_text: String,
pub collapsed_control_text: String,
pub footer: String,
pub buttons: Vec<TaskDialogButton>,
pub default_button: i32,
pub radio_buttons: Vec<TaskDialogButton>,
pub default_radio_buttons: i32,
pub main_icon: PCWSTR,
pub footer_icon: PCWSTR,
pub dialog_hwnd: HWND,
pub is_destroyed: bool,
pub hyperlink_callback: TaskDialogHyperlinkCallback,
pub callback: TaskDialogWndProcCallback,
pub cx_width: u32,
}
Fields§
§parent: HWND
§instance: HMODULE
§flags: TASKDIALOG_FLAGS
§window_title: String
§main_instruction: String
§content: String
§verification_text: String
§expanded_information: String
§expanded_control_text: String
§collapsed_control_text: String
§main_icon: PCWSTR
§dialog_hwnd: HWND
When created dialog, the value set to HWND.
is_destroyed: bool
When close the dialog, the value set to true, default is false.
hyperlink_callback: TaskDialogHyperlinkCallback
§callback: TaskDialogWndProcCallback
§cx_width: u32
Implementations§
Source§impl TaskDialogConfig
impl TaskDialogConfig
Sourcepub fn enable_process_bar(&mut self, marquee: bool)
pub fn enable_process_bar(&mut self, marquee: bool)
Add TDF_SHOW_PROGRESS_BAR
flag on marquee
is false
,
otherwise TDF_SHOW_MARQUEE_PROGRESS_BAR
.
https://docs.microsoft.com/en-us/windows/win32/controls/progress-bar-control
Sourcepub fn disable_process_bar(&mut self, marquee: bool)
pub fn disable_process_bar(&mut self, marquee: bool)
Disables progresss bar
Sourcepub fn set_process_bar_marquee(&mut self, enable: bool, time: isize)
pub fn set_process_bar_marquee(&mut self, enable: bool, time: isize)
Set status or animation time of marquee progress bar
Sourcepub fn set_process_bar(&mut self, percentage: usize)
pub fn set_process_bar(&mut self, percentage: usize)
Set the percentage of the progress bar
Sourcepub fn set_content(&mut self, content: &str)
pub fn set_content(&mut self, content: &str)
Set the content text
Sourcepub fn set_main_instruction(&mut self, main_instruction: &str)
pub fn set_main_instruction(&mut self, main_instruction: &str)
Set the main instruction text
Set the footer text
Sourcepub fn set_expanded_information(&mut self, expanded_information: &str)
pub fn set_expanded_information(&mut self, expanded_information: &str)
Set the expanded information text
Set the button elevation state
Navigate to new page
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskDialogConfig
impl RefUnwindSafe for TaskDialogConfig
impl !Send for TaskDialogConfig
impl !Sync for TaskDialogConfig
impl Unpin for TaskDialogConfig
impl UnwindSafe for TaskDialogConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more