Share via


TaskDialogCallbackProc (Compact 2013)

3/28/2014

This function receives messages from the task dialog when specified events occur.

Syntax

typedef HRESULT (CALLBACK *PFTASKDIALOGCALLBACK) (
    HWND hwnd,
    UINT uNotification,
    WPARAM wParam,
    LPARAM lParam,
    LONG_PTR lpRefData
);

Parameters

  • hwnd
    [in] Handle to the task dialog window. Do not send messages to hwnd after the callback procedure returns from being called with TDN_DESTROYED.
  • uNotification
    [in] One of the following notifications:

    • TDN_CREATED
      Indicates that the task dialog has been created.
    • TDN_BUTTON_CLICKED
      Indicates that a button has been selected.
    • TDN_DESTROYED
      Indicates that the task dialog has been destroyed.
    • TDN_RADIO_BUTTON_CLICKED
      Indicates that a radio button has been selected.
    • TDN_DIALOG_CONSTRUCTED
      Indicates that the task dialog has been constructed.
    • TDN_VERIFICATION_CLICKED
      Indicates that the check box has been clicked.
  • wParam
    [in] Specifies additional notification information. The contents of this parameter depend on the value of the uNotification parameter.
  • lParam
    [in] Specifies additional notification information. The contents of this parameter depend on the value of the uNotification parameter.
  • lpRefData
    [in] Pointer to application specific data. This is the data pointed to by the lpCallbackData member of the TASKDIALOGCONFIG structure used to create the task dialog.

Return Value

Returns an HRESULT value specific to the notification being processed.

Remarks

This function is an application-defined function used with the TaskDialogIndirect function. It receives messages from the task dialog when various events occur.

Requirements

Header

shellctrls.h

See Also

Reference

Task Dialogs Functions
TaskDialogIndirect
TASKDIALOGCONFIG