/// <summary> /// Updates the Main Instruction. /// </summary> /// <param name="mainInstruction">The new value.</param> public void UpdateMainInstruction(string mainInstruction) { // TDE_MAIN_INSTRUCTION // TDM_UPDATE_ELEMENT_TEXT = WM_USER+114, // wParam = element (TASKDIALOG_ELEMENTS), lParam = new element text (LPCWSTR) VistaUnsafeNativeMethods.SendMessageWithString( this.handle, (uint)VistaUnsafeNativeMethods.TASKDIALOG_MESSAGES.TDM_UPDATE_ELEMENT_TEXT, (IntPtr)VistaUnsafeNativeMethods.TASKDIALOG_ELEMENTS.TDE_MAIN_INSTRUCTION, mainInstruction); }
/// <summary> /// Updates the Footer text. No Effect if it was perviously set to null. /// </summary> /// <param name="footer">The new value.</param> public void UpdateFooter(string footer) { // TDE_FOOTER, // TDM_UPDATE_ELEMENT_TEXT = WM_USER+114, // wParam = element (TASKDIALOG_ELEMENTS), lParam = new element text (LPCWSTR) VistaUnsafeNativeMethods.SendMessageWithString( this.handle, (uint)VistaUnsafeNativeMethods.TASKDIALOG_MESSAGES.TDM_UPDATE_ELEMENT_TEXT, (IntPtr)VistaUnsafeNativeMethods.TASKDIALOG_ELEMENTS.TDE_FOOTER, footer); }
/// <summary> /// Updates the Expanded Information text. No effect if it was previously set to null. /// </summary> /// <param name="expandedInformation">The new value.</param> public void UpdateExpandedInformation(string expandedInformation) { // TDE_EXPANDED_INFORMATION, // TDM_UPDATE_ELEMENT_TEXT = WM_USER+114, // wParam = element (TASKDIALOG_ELEMENTS), lParam = new element text (LPCWSTR) VistaUnsafeNativeMethods.SendMessageWithString( this.handle, (uint)VistaUnsafeNativeMethods.TASKDIALOG_MESSAGES.TDM_UPDATE_ELEMENT_TEXT, (IntPtr)VistaUnsafeNativeMethods.TASKDIALOG_ELEMENTS.TDE_EXPANDED_INFORMATION, expandedInformation); }
/// <summary> /// Updates the Main Instruction. /// </summary> /// <param name="mainInstruction">The new value.</param> /// <returns>If the function succeeds the return value is true.</returns> public bool SetMainInstruction(string mainInstruction) { // TDE_MAIN_INSTRUCTION // TDM_SET_ELEMENT_TEXT = WM_USER+108 // wParam = element (TASKDIALOG_ELEMENTS), lParam = new element text (LPCWSTR) return(VistaUnsafeNativeMethods.SendMessageWithString( this.handle, (uint)VistaUnsafeNativeMethods.TASKDIALOG_MESSAGES.TDM_SET_ELEMENT_TEXT, (IntPtr)VistaUnsafeNativeMethods.TASKDIALOG_ELEMENTS.TDE_MAIN_INSTRUCTION, mainInstruction) != IntPtr.Zero); }
/// <summary> /// Updates the Footer text. /// </summary> /// <param name="footer">The new value.</param> /// <returns>If the function succeeds the return value is true.</returns> public bool SetFooter(string footer) { // TDE_FOOTER, // TDM_SET_ELEMENT_TEXT = WM_USER+108 // wParam = element (TASKDIALOG_ELEMENTS), lParam = new element text (LPCWSTR) return(VistaUnsafeNativeMethods.SendMessageWithString( this.handle, (uint)VistaUnsafeNativeMethods.TASKDIALOG_MESSAGES.TDM_SET_ELEMENT_TEXT, (IntPtr)VistaUnsafeNativeMethods.TASKDIALOG_ELEMENTS.TDE_FOOTER, footer) != IntPtr.Zero); }
/// <summary> /// Updates the Expanded Information text. /// </summary> /// <param name="expandedInformation">The new value.</param> /// <returns>If the function succeeds the return value is true.</returns> public bool SetExpandedInformation(string expandedInformation) { // TDE_EXPANDED_INFORMATION, // TDM_SET_ELEMENT_TEXT = WM_USER+108 // wParam = element (TASKDIALOG_ELEMENTS), lParam = new element text (LPCWSTR) return(VistaUnsafeNativeMethods.SendMessageWithString( this.handle, (uint)VistaUnsafeNativeMethods.TASKDIALOG_MESSAGES.TDM_SET_ELEMENT_TEXT, (IntPtr)VistaUnsafeNativeMethods.TASKDIALOG_ELEMENTS.TDE_EXPANDED_INFORMATION, expandedInformation) != IntPtr.Zero); }