>> Is there any way, to activate an edit button?
You mean set focus ?
Windows focused first enabled control that have lowest id number.
You can change resource file or write litle code.
During WM_INITDIALOG:
// Set keyboard focus (dot line) to IDB_EDIT button.
SetFocus(GetDlgItem(hDlg, IDB_EDIT));
// Set BS_DEFPUSHBUTTON style to button (black border).
// Usually OK button has this style.
SendMessage(GetDlgItem(hDlg, IDB_EDIT), BM_SETSTYLE,
BS_DEFPUSHBUTTON, TRUE);
return FALSE;
|