ho provato con SetFocus e SendMessage e non ha funzionato.
Con PostMessage invece si
hwndDlg = hwnd del dialog boxcodice:PostMessage(GetDlgItem(hwndDlg, IDC_EDITBOX), WM_SETFOCUS, (WPARAM) hwndDlg, 0);
IDC_EDITBOX = identificatore del text box
ho provato con SetFocus e SendMessage e non ha funzionato.
Con PostMessage invece si
hwndDlg = hwnd del dialog boxcodice:PostMessage(GetDlgItem(hwndDlg, IDC_EDITBOX), WM_SETFOCUS, (WPARAM) hwndDlg, 0);
IDC_EDITBOX = identificatore del text box