Hoping for a quick response,
Morten
You're going to have to subclass it and intercept (as in never let the base
class see it) the WM_GETDLGCODE message. To reimplement it, you can
basically follow the description of the message under "Edit Control Default
Message Processing" at this URL...
...Always return the basic flags:
DLGC_WANTARROWS|DLGC_WANTCHARS|DLGC_HASSETSEL|DLGC_WANTALLKEYS. When the
(LPMSG)(LPARAM) from GetCurrentMessage()->lParam is non-NULL and
WM_SYSKEYDOWN/VK_BACK add the DLGC_WANTMESSAGE flag. Additionally, add a
check for WM_KEYDOWN/VK_TAB and add the DLGC_WANTTAB flag.
--
Jeff Partch [VC++ MVP]