I am on the chapter "Keyboard" of petzold and I'm just a little foggy with the WM_CHAR message. I think that it is a different and separate message from WM_KEYDOWN, but then why does it send a WM_KEYDOWN message to the WndProc?

And, to get the char that the user pressed, you just do this:
Code:
/* CODE SNIPPET */
TCHAR newchar;

/*** SOME CODE DOWN ***/

switch (message)
{
    case: WM_CHAR
    {
        newchar = (TCHAR) wParam;
    }
/*** ETC... ***/
Do I pretty much have the right idea? I didn't write out the whole WndProc, but I wanted to make sure that I'm understanding:

>> newchar = (TCHAR) wParam;

Is this right? Thanks.

--Garfield