---
title: "MessageBox (Opus Funktion)"
---
### Beschreibung

Diese Funktion erzeugt ein Popup Fenster, welches dem User eine Mitteilung anzeigt.

Argumente

<table>
<tr>
<th markdown="block">

Name

</th>
<th markdown="block">

Typ

</th>
<th markdown="block">

Beschreibung

</th>
</tr>
<tr>
<td markdown="block">

</td>
<td markdown="block">

[string](../../standard-datentypen/string.md)

</td>
<td markdown="block">

Meldung, die angezeigt werden soll.

</td>
</tr>
<tr>
<td markdown="block" colspan="1">

</td>
<td markdown="block" colspan="1">

[string](../../standard-datentypen/string.md)

</td>
<td markdown="block" colspan="1">

Titel der Nachricht

</td>
</tr>
<tr>
<td markdown="block" colspan="1">

</td>
<td markdown="block" colspan="1">

[integer](../../standard-datentypen/integer.md)

</td>
<td markdown="block" colspan="1">

| Buttons | Flag | MessageBox("Text1","Text2",0x000..) |
| --- | --- | --- |
| MB_OK | 0x00000000 | ![image2017-3-20 17:19:9.png](../../../../../attachments/3370109/3358968.png) |
| MB_OKCANCEL | 0x00000001 | ![image2017-3-20 17:18:18.png](../../../../../attachments/3370109/3359088.png) |
| MB_ABORTRETRYIGNORE | 0x00000002 | ![image2017-3-20 17:20:5.png](../../../../../attachments/3370109/3358978.png) |
| MB_YESNOCANCEL | 0x00000003 | ![image2017-3-20 17:20:52.png](../../../../../attachments/3370109/3358988.png) |
| MB_YESNO | 0x00000004 | ![image2017-3-20 17:22:33.png](../../../../../attachments/3370109/3358998.png) |
| MB_RETRYCANCEL | 0x00000005 | ![image2017-3-20 17:23:3.png](../../../../../attachments/3370109/3359008.png) |
| MB_CANCELTRYCONTINUE | 0x00000006 | ![image2017-3-20 17:46:19.png](../../../../../attachments/3370109/3359038.png) |
| Icons | Summe mit Flag Buttons | z.B. 0x00000023 |
| MB_ICONQUESTION | 0x00000020 | ![image2017-3-20 17:47:53.png](../../../../../attachments/3370109/3358888.png) |
| MB_ICONEXCLAMATION | 0x00000030 | ![image2017-3-20 17:50:8.png](../../../../../attachments/3370109/3358898.png) |
| MB_USERICON | 0x00000080 | ?? |
| MB_ICONERROR | 0x00000010 | ![image2017-3-20 17:29:45.png](../../../../../attachments/3370109/3359018.png) |
| MB_ICONINFORMATION | 0x00000040 | ![image2017-3-20 17:50:55.png](../../../../../attachments/3370109/3358908.png) |
| Deault Buttons | Summe mit Flag Buttons | z.B. 0x0000103 |
| MB_DEFBUTTON1 | 0x00000000 | 1. Button ist der Default Button |
| MB_DEFBUTTON2 | 0x00000100 | 2. Button ist der Default Button |
| MB_DEFBUTTON3 | 0x00000200 | 3. Button ist der Default Button ![image2017-3-20 17:54:56.png](../../../../../attachments/3370109/3358918.png) 0x00000203 |
| MB_DEFBUTTON4 | 0x00000300 | 4. Button ist der Default Button |
| Weitere Eigenschaften |  |  |
| MB_APPLMODAL | 0x00000000 |  |
| MB_SYSTEMMODAL | 0x00001000 |  |
| MB_TASKMODAL | 0x00002000 |  |
| MB_HELP | 0x00004000 | 0x00004103 ![image2017-3-20 17:38:54.png](../../../../../attachments/3370109/3359028.png) |
| MB_NOFOCUS | 0x00008000 |  |
| MB_SETFOREGROUND | 0x00010000 |  |
| MB_DEFAULT_DESKTOP_ONLY | 0x00020000 |  |
| MB_TOPMOST | 0x00040000 |  |
| MB_RIGHT | 0x00080000 |  |

</td>
</tr>
</table>

### Rückgabewert [integer](../../standard-datentypen/integer.md)

| Button | integer |
| --- | --- |
| ![image2017-3-20 18:0:30.png](../../../../../attachments/3370109/3358928.png) | 1 |
| ![image2017-3-20 18:1:8.png](../../../../../attachments/3370109/3358938.png) | 2 |
| ![image2017-3-20 18:1:37.png](../../../../../attachments/3370109/3358948.png) | 3 |
| ![image2017-3-20 18:2:30.png](../../../../../attachments/3370109/3358958.png) | 4 |
| ![image2017-3-20 18:2:59.png](../../../../../attachments/3370109/3358818.png) | 5 |
| ![image2017-3-20 18:3:39.png](../../../../../attachments/3370109/3358828.png) | 6 |
| ![image2017-3-20 18:3:57.png](../../../../../attachments/3370109/3358838.png) | 7 |
| ![image2017-3-20 18:4:43.png](../../../../../attachments/3370109/3358848.png) | 9 |
| ![image2017-3-20 18:7:8.png](../../../../../attachments/3370109/3358858.png) | 10 |
| ![image2017-3-20 18:7:36.png](../../../../../attachments/3370109/3358868.png) | 11 |

### Beispiel

```
s_Mess = MessageBox("Bitte PlanungsPeriode auswählen!", "Abbruch", 0x00000000);
```

### Siehe auch

---
