Hey I figured out partially navigation implementations here..
When You have to move from one dialog to the other say D1 to D2 on pressing any key,follow the steps:
1)Create a class for the new dialog ie D2 with the base class as CDialog.
2)Next add a member variable to the D1 class - of the type D2 class and give the access as private.(say m_dialog2)
3)Next on the message WM_KEYDOWN add a function and add the following code:
void CD1::OnButton()
{
// TODO: Add your message handler code here and/or call default
if(m_dialog2.DoModal()==IDOK)
UpdateData(FALSE);
CDialog::OnKeyDown(nChar, nRepCnt, nFlags);
}
For the above code only Enter and Space key are active.If i press any other key like the alphabets or numbers the navigation is not happening.. How do I go about this?
How do i implement the back key navigation?