views:

146

answers:

2

Can tdiQuestion be added to TaskDialog.MainIcon? Unavailability of the "?" icon in the TaskDialog renders it almost useless.

Is there any fix?

+2  A: 

The reason that there is no tdiQuestion option for the MainIcon property is that the TaskDialog is a wrapper around the new TaskDialogIndirect() function introduced with Vista, and the TASKDIALOGCONFIG structure this function uses provides no TD_ERROR_ICON in its pszMainIcon field.

If you read the Windows User Experience Interaction Guidelines, specifically the section on Confirmations you will notice that the question icon has been deprecated for a long time, so it is only fitting that the task dialog does no longer provide it, even though it is still supported for MessageBox() for reasons of backwards compatibility.

You will notice that the task dialog with the "Do you want to save changes to Untitled?" question in the documentation linked above does come without icon, so that's probably the proper thing for you to do as well.

mghie
A: 

You can use TMS one

Hugues Van Landeghem