---
name: "XmMessageBoxGetChild"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XmMessageBoxGetChild"
---

# XmMessageBoxGetChild(3)

A MessageBox function that is used to access a component

## NAME

**XmMessageBoxGetChild** — A MessageBox function that is used to access a component

## SYNOPSIS

```
#include <Xm/MessageB.h>
Widget XmMessageBoxGetChild(
Widget widget,
unsigned char child);
```

## DESCRIPTION

**XmMessageBoxGetChild** is used to access a component within a MessageBox. The parameters given to the function are the MessageBox widget and a value indicating which component to access.

NOTE: This routine is obsolete and exists for compatibility with previous releases. Instead of calling **XmMessageBoxGetChild**, you should call **XtNameToWidget** as described in the [**XmMessageBox**(3)](/XmMessageBox/3.md) reference page.

- *widget*

  Specifies the MessageBox widget ID.

- *child*

  Specifies a component within the MessageBox. The following are legal values for this parameter:

  - •

    **XmDIALOG\_CANCEL\_BUTTON**

  - •

    **XmDIALOG\_DEFAULT\_BUTTON**

  - •

    **XmDIALOG\_HELP\_BUTTON**

  - •

    **XmDIALOG\_MESSAGE\_LABEL**

  - •

    **XmDIALOG\_OK\_BUTTON**

  - •

    **XmDIALOG\_SEPARATOR**

  - •

    **XmDIALOG\_SYMBOL\_LABEL**

For a complete definition of MessageBox and its associated resources, see [**XmMessageBox**(3)](/XmMessageBox/3.md).

## RETURN

Returns the widget ID of the specified MessageBox component. An application should not assume that the returned widget will be of any particular class.

## RELATED

[**XmMessageBox**(3)](/XmMessageBox/3.md).
