Skip to content

ui::MessageBoxOptions

Header: winui/ui/MessageBox.hpp.

What ui::message_box() shows. Fill it with designated initializers.

Field Type Default
title std::string The box's window title. Empty: the program's file name.
heading std::string A short line in large text above text, the question or the problem in a few words. Empty: none.
text std::string The message. Line breaks are kept.
buttons MessageBoxButtons MessageBoxButtons::Ok The buttons offered.
icon MessageBoxIcon MessageBoxIcon::None The icon beside the text.