Does anyone know how to make an edit control in a dialog receive Tab
keystrokes?
Thank you.
David Liebtag
Yeah, I think I do. The trick is: in your WM_GETDLGCODE handler to not
let the edit class WindowProc even see the message if the
(LPMSG)(LPARAM) is WM_KEYDOWN/VK_TAB. Just return the appropriate flags
directly (DLGC_WANTARROWS|DLGC_WANTCHARS|DLGC_WANTTAB, I think). IIRC,
this is only necessary for ES_MULTILINE style edits. Oh, and before you
get too deep into it, the built-in mechanism is to use [Shift+]Ctrl+Tab
I believe.
--
Jeff Partch [VC++ MVP]
David