WM_TABSTOP works if you handle the messages in a dialog handler.
But, then you can't use tabs as characters in multiline edit boxes.
Handling the messages through IsDialogMessage() seems kinda hackerish. Is there any way to do it correctly?
WM_TABSTOP works if you handle the messages in a dialog handler.
But, then you can't use tabs as characters in multiline edit boxes.
Handling the messages through IsDialogMessage() seems kinda hackerish. Is there any way to do it correctly?
"The Internet treats censorship as damage and routes around it." - John Gilmore
The correct way is to use IsDialogMessage to get default keyboard handling as for dialogs and to subclass the edit control, handle its WM_GETDLGCODE message and return DLGC_WANTTAB from that handler.
See also msdn: How To Use the WM_GETDLGCODE Message.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.