# DN_KILLFOCUS

The DN_KILLFOCUS event is sent to the dialog callback function before a dialog item loses the focus.

### Param1

The ID of the dialog item that loses the focus.

### Param2

0

### Return

-1 - allow the dialog item to lose focus
>=0 - ID of the dialog item you want to pass the focus to.

### Controls

Control | Description
--- | ---
All | All elements that can receive the keyboard focus.

### Remarks

### Example

See also:
DialogEx