You want to add a "Event Handler" for the event of pressing a Tab key or Return key?
Not exactly. The event handler would be similar to that second bit of code I include above.
I can include, in my MESSAGE MAP,
ON_WM_KEYDOWN()
and write a handler function..
void CApplView::OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags) {...}
That will work to capture a key stroke when the main window has focus. I want it to capture the key stroke when pUserid has the focus. I know I can do this by creating a new class derived from CEdit, but I thought there must be a simpler way.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.