MessageBox.winId

The Window id where the Error/Warning/Information comes from. Can be get by

Window wnd = new Window(...);
// A lot of code
MessageBox(MessageBox.Error, "An Error", "You get an error!", wnd.id);

Default is -1, which means that the MessageBox is not affiliated to any Window.

struct MessageBox
int winId;

Meta