Hi,
I'm trying to set the focus to an edit control when a dialog box is initizlied:
hWnd = SetFocus(GetDlgItem(hDlg,IDC_EDIT1));
But it's not happening.. No errors, but the focus is not getting set on IDC_EDIT1.
Any ideas what I'm doing wrong?
thanks,
dan




Reply With Quote