H
hex
I put function OnInitDialog in child dialog wich made by class CSecond:
BOOL CSecond::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_ed.SetFocus();
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
But focus doesn't set.
Source located at http://hex.org.ua/SetFocus.zip
BOOL CSecond::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_ed.SetFocus();
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
But focus doesn't set.
Source located at http://hex.org.ua/SetFocus.zip