# DN_GOTFOCUS

The DN_GOTFOCUS event is sent to the dialog callback function after a dialog item has received keyboard focus.

### Param1

ID of the dialog item that has received the focus.

### Param2

0

### Return

0

### Controls

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

### Remarks

The event is also sent to the focused element immediately after DN_INITDIALOG.

### Example

See also:
DialogEx