Setting the tab key

I have bunch of edit boxes in my application and a listbox. I want the tab key to be associated with listbox. Meaning if I press tab from anywhere, it should just go to the listbox.  Can someone please tell me what to do:)

I know about the following function
BOOL SetTabStops( const int& cxEachStop );

I just don't know how to use it to do what I want.
Who is Participating?
migelConnect With a Mentor Commented:
just remove WS_TABSTOP style from all controls in the dialog except listbox
SetTabStops is not usefull for you since it works only with editboxes and listboxes text (just kind of formatting.
mejaz01Author Commented:
Thanx man!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.