VK_TAB in an edit control in a dialog
-
There's no way this is the first time someone has encountered this but all of my searches are turning up unrelated crap. I have a CRichEditCtrl in a dialog (modal) that I want to be able to accept the TAB key. The dialog keeps butting in and stealing the TAB (as it normally would) to select the next control. There are no other controls that I would want to jump to so if there is a solution that will allow me to get the TAB key within the edit and not have the focus change, that would be ideal. I have tried playing with PreTranslateMessage() and a few other things but the focus continues to change not matter what I have tried. Thanks for any help you may be able to provide. Dave
-
There's no way this is the first time someone has encountered this but all of my searches are turning up unrelated crap. I have a CRichEditCtrl in a dialog (modal) that I want to be able to accept the TAB key. The dialog keeps butting in and stealing the TAB (as it normally would) to select the next control. There are no other controls that I would want to jump to so if there is a solution that will allow me to get the TAB key within the edit and not have the focus change, that would be ideal. I have tried playing with PreTranslateMessage() and a few other things but the focus continues to change not matter what I have tried. Thanks for any help you may be able to provide. Dave
-
Check WM_GETDLGCODE documenation. "...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..." Me