Share via


TASKDIALOG_COMMON_BUTTON_FLAGS (Compact 2013)

3/28/2014

This enumeration assigns commands to the soft keys displayed in the task dialog.

Syntax

enum _TASKDIALOG_COMMON_BUTTON_FLAGS {
    TDCBF_OK_BUTTON         = 0x0001,
    TDCBF_YES_BUTTON        = 0x0002,
    TDCBF_NO_BUTTON         = 0x0004,
    TDCBF_CANCEL_BUTTON     = 0x0008,
    TDCBF_RETRY_BUTTON      = 0x0010,
    TDCBF_CLOSE_BUTTON      = 0x0020
} TASKDIALOG_COMMON_BUTTON_FLAGS;

Parameters

  • TDCBF_OK_BUTTON
    Add Okay to the central menu and associate it with soft key 1.
  • TDCBF_YES_BUTTON
    Add Yes to the central menu. If TDCBF_OK_BUTTON is not specified, this menu item is associated with soft key 1.
  • TDCBF_NO_BUTTON
    Add No to the central menu. If TDCBF_CANCEL_BUTTON and TDCBF_CLOSE_BUTTON are not specified, this item is associated with soft key 2.
  • TDCBF_CANCEL_BUTTON
    Add Cancel to the central menu and associate it with soft key 2.
  • TDCBF_RETRY_BUTTON
    Add Retry to the central menu. If TDCBF_OK_BUTTON is not specified, then this menu item is associated with soft key 1.
  • TDCBF_CLOSE_BUTTON
    Add Close to the central menu. If TDCBF_CANCEL_BUTTON is not specified, this menu item is associated with soft key 2.

Remarks

If you specify the TASKDIALOG_FLAGS value TDF_USE_COMMAND_LINKS_NO_ICON is specified, the button IDs between TDCBID_COMMANDLINK_FIRST and TDCBID_COMMANDLINK_LAST are converted to command links; the rest are placed in the central menu.

Requirements

Header

shellctrls.h

See Also

Reference

Task Dialogs Enumerations
TASKDIALOGCONFIG
TASKDIALOG_FLAGS