Tech Support > Microsoft Windows > Development Resources > DialogBox and WM_CHAR
DialogBox and WM_CHAR
Posted by Gutek on October 26th, 2003


Hello,
I have written a simple application, in which WinMain contains single line
only:

return DialogBox (0, MAKEINTRESOURCE(IDD_DIALOG), NULL, DlgProc) ;

All messages are processed by DlgProc.

Q: Can I process WM_CHAR messages just like in ordinary window? I know that
I should insert TranslateMessage() in the message loop, but I do not have
direct access to it.

--
Gutek


Posted by Thomas Jansen on October 27th, 2003


"Gutek" <gutek@fuckoff.p.lodz.pl> wrote in message news:<bngj48$ico$1@nemesis.news.tpi.pl>...
Have you tried to add an WM_CHAR handler in de dialog handler?
I assume the default dialoghandler will call TranslateMessage().

Thomas


Similar Posts