DIF_FOCUS

The item with the DIF_FOCUS flag set will receive keyboard input focus when the dialog first shown on the screen.

Controls

The DIF_HOMEITEM flag is applicable to the following dialog items:
ControlDescription
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_USERCONTROL User control.

Remarks

The DIF_FOCUS flag should be set on one (and one only!) dialog item.

See also: