> ## 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

設定要由 XGameUiShowMessageDialogResult 傳回的結果 XGameUiMessageDialogButton 值。

## 語法

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

### 參數

*callbackHandle*\
類型：XGameUiCallbackHandle

此回呼叫用的控制代碼。

*response*\*\
類型：XGameUiMessageDialogButton

針對 XGameUiShowMessageDialogAsync 的對應叫用，要從 XGameUiShowMessageDialogResult 傳回的值。

### 傳回值

類型：STDAPI

## 需求

**標頭：** XGameUi.h

**支援的平台：** 僅在 Steam Deck 上支援

另請參閱

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


## Related topics

- [XGameUiSetMessageDialogUiResponse](/reference/system/xgameui/functions/xgameuisetmessagedialoguiresponse.md)
- [XGameUiCallbackHandle](/reference/system/xgameui/structs/xgameuicallbackhandle.md)
