I have encountered a strange phenomenon where i intend to switch the focus from the OK button to a button with an ID of IDC_NEXTPAGE.
What, in fact happens, is that the focus is shifted to the SPACE BAR instead of the ENTER key ?? Whoaa! How can this be?
the code:
..stuff
UpdateData()
.
.
m_ScanOK.EnableWindow(FALSE);
m_ScanNxtPg.EnableWindow(TRUE);
CWnd* pNP= GetDlgItem(IDC_NEXTPAGE);
pNP->SetFocus();
.
.
kin u figger it?