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

# XGameUiShowMessageDialogUiCallback

> XGameUiShowMessageDialogUiCallback

# XGameUiShowMessageDialogUiCallback

XGameUiShowMessageDialogAsync 回呼的簽章。

## 語法

```cpp theme={null}
void CALLBACK XGameUiShowMessageDialogUiCallback(
    
    XGameUiCallbackHandle callbackHandle,
    XTaskQueueHandle queue,
    const char* titleText,
    const char* contentText,
    const char* firstButtonText,
    const char* secondButtonText,
    const char* thirdButtonText,
    XGameUiMessageDialogButton defaultButton,
    XGameUiMessageDialogButton cancelButton,
    void* context.
);
```

## 參數

*callbackHandle*\
類型：XGameUiCallbackHandle

此回呼叫用的控制代碼。

*queue*\
類型：XTaskQueueHandle

執行 UI 回呼之工作佇列的控制代碼。

*titleText*\
類型：const char\*

訊息對話方塊的文字標題。

*contentText*\
類型：const char\*

訊息對話方塊內顯示的文字。

*firstButtonText*\
類型：const char\*

訊息對話方塊第一個按鈕上顯示的文字。

*secondButtonText*\
類型：const char\*

訊息對話方塊第二個按鈕上顯示的文字。

*thirdButtonText*\
類型：const char\*

訊息對話方塊第三個按鈕上顯示的文字。

*defaultButton*\
類型：XGameUiMessageDialogButton

表示訊息對話方塊首次顯示時預設選取的按鈕。

*cancelButton*\
類型：XGameUiMessageDialogButton

表示代表取消動作的按鈕。

*context*\
類型：void\*

指向開發人員提供之內容的指標。

## 需求

**標頭：** XGameUi.h

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

## 另請參閱

[XGameUI](/zh-TW/reference/system/xgameui/xgameui_members)\
[XGameUiSetUiCallbacks](/zh-TW/reference/system/xgameui/functions/xgameuisetuicallbacks)


## Related topics

- [XGameUiShowMessageDialogUiCallback](/reference/system/xgameui/functions/xgameuishowmessagedialoguicallback.md)
- [XGameUiUiCallbacks](/reference/system/xgameui/structs/xgameuiuicallbacks.md)
- [XGameUiSetMessageDialogUiResponse](/reference/system/xgameui/functions/xgameuisetmessagedialoguiresponse.md)
- [XGameUiShowMessageDialogResult](/reference/system/xgameui/functions/xgameuishowmessagedialogresult.md)
- [XGameUiShowMessageDialogAsync](/reference/system/xgameui/functions/xgameuishowmessagedialogasync.md)
