Hello there I would like to implement the TAB effect on multiple textboxes
i.e upon entering the value in a textbox and then hitting the enter key the focus should
automatically get onto the next textbox (as good as entering the data and then hitting the
TAB key which I dont want to do)...So please can some one suggest a way for this
currently I am trying to use this piece of code in PreTranslateMessage()..
if ( (pMsg->wParam == VK_RETURN) )
if( m_CeditCtrlLlaLatDegrees.GetFocus() )
{
keybd_event( VK_TAB,0x09,0,0);
}
but the above code just pushes the focus onto the textbox following the one i need for.that is
it moves 2 tabs ahead... i have a total of 20 textboxes all taken from CEdit and all
accept only numeric values.
Also I would like to know the way to retrieve the ID for each of these textboxes
I tried assigning Cedit - control variable and accessing the ID for each of the
textbox ..then through a switch-case statement of a simple if-else code i would
then check which textbox is active and then SetFocus() to the next immediate one
--- all of this in PreTranslateMessage();.
But even this wont work ..So please can someone suggest a way to get this thing to work.
Please let me know the flow/code in detail since I am a newbie ..
Thanks for the help in advance.