> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGameUiSetMessageDialogUiResponse

> XGameUiSetMessageDialogUiResponse

# XGameUiSetMessageDialogUiResponse

Sets the result XGameUiMessageDialogButton value to be returned by XGameUiShowMessageDialogResult.

## Syntax

```cpp theme={null}
HRESULT XGameUiSetMessageDialogUiResponse(
     XGameUiCallbackHandle callbackHandle,
     XGameUiMessageDialogButton response
) noexcept;
```

### Parameters

*callbackHandle*\
Type: XGameUiCallbackHandle

The handle for this callback invocation.

*response*\*\
Type: XGameUiMessageDialogButton

The value to return from XGameUiShowMessageDialogResult for the corresponding invocation of XGameUiShowMessageDialogAsync.

### Return value

Type: STDAPI

## Requirements

**Header:** XGameUi.h

**Supported platforms:** Supported only on Steam Deck

See also

[XGameUI](/reference/system/xgameui/xgameui_members)\
[XGameUiShowMessageDialogAsync](/reference/system/xgameui/functions/xgameuishowmessagedialogasync)


## Related topics

- [XGameUiCallbackHandle](/reference/system/xgameui/structs/xgameuicallbackhandle.md)
- [XGameUiSetErrorDialogUiResponse](/reference/system/xgameui/functions/xgameuiseterrordialoguiresponse.md)
- [XGameUiShowMessageDialogUiCallback](/reference/system/xgameui/functions/xgameuishowmessagedialoguicallback.md)
- [XGameUiMessageDialogButton](/reference/system/xgameui/enums/xgameuimessagedialogbutton.md)
- [XGameUiShowMessageDialogAsync](/reference/system/xgameui/functions/xgameuishowmessagedialogasync.md)
