By calling GetParentFrame()->SetActiveView(this); before calling oEditCtrl.SetFocus() from the CFormView hosting the edit control I got it working.
GetParentFrame()->SetActiveView(this);
oEditCtrl.SetFocus()