Alright...this makes no sense. I'm trying to set the focus to an edit box when my dialog box loads....so, inside the OnInitDialog() function, I'm putting:
Wnd* PreviousFocus;
PreviousFocus = m_report.SetFocus();
m_report is a member variable of my CEdit box. If I am reading the docs correctly, this only sets the focus to the window and not an object? When my dialog box comes up, the OK button has focus and I want to set it to the edit box when it comes up....am I making sense? I've looked and looked but can't seem to find why this is happening! Thanks for any and all help!
Niky Williams
NTS Marketing
Wnd* PreviousFocus;
PreviousFocus = m_report.SetFocus();
m_report is a member variable of my CEdit box. If I am reading the docs correctly, this only sets the focus to the window and not an object? When my dialog box comes up, the OK button has focus and I want to set it to the edit box when it comes up....am I making sense? I've looked and looked but can't seem to find why this is happening! Thanks for any and all help!
Niky Williams
NTS Marketing