# DM_CLOSE

The DM_CLOSE message is sent to the dialog manager when a plugin notifies the Dialog API kernel that it wants to close the dialog.

### Param1

ID of the item that will be returned from the DialogEx function. If Param1 is equal to -1, DialogEx will return the ID of the item that currently has the focus.

### Param2

0

### Return

Value which is returned by dialog handler as the answer to DN_CLOSE.

### Remarks

The DN_CLOSE event is received immediately after the DM_CLOSE message is sent.

### Example

See also:
DialogEx, DN_CLOSE