Beispiel #1
0
 /// <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);
 }
Beispiel #2
0
 /// <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);
 }
Beispiel #3
0
 /// <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);
 }
Beispiel #4
0
 /// <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);
 }
Beispiel #5
0
 /// <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);
 }
Beispiel #6
0
 /// <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);
 }