# DIF_HOMEITEM

The first dialog item which has the DIF_HOMEITEM flag set and can have keyboard input focus will be receiving the focus when the user presses the `Home` key.

### Controls

The DIF_HOMEITEM flag is applicable to the following dialog items:

Control | Description
--- | ---
DI_BUTTON | Push button.
DI_CHECKBOX | Check box.
DI_EDIT | Edit box.
DI_FIXEDIT | Fixed size edit box.
DI_COMBOBOX | Combo box.
DI_RADIOBUTTON | Radio button.
DI_PSWEDIT | Password edit box.
DI_LISTBOX | List box.
DI_MEMOEDIT |
DI_USERCONTROL | User control.

### Remarks

- A dialog item can have keyboard input focus if it does not have any of DIF_NOFOCUS, DIF_DISABLE, or DIF_HIDDEN flags set.
- If more than one dialog item has the DIF_HOMEITEM flag set, the `Home` key will move focus to the first such item which can have keyboard input focus.
- If none of dialog items has the DIF_HOMEITEM flag set, the `Home` key will move focus to the first dialog item which can have keyboard input focus.
- If an item which has the flag DIF_FOCUS set is not the first item on the dialog, it is recommended to set DIF_HOMEITEM flag on this item as well, so that the `Home` key moves the focus to the item which takes focus when the dialog is first shown on the screen.

See also: