WM_CHAR

static char string[100];
static int nIndex = 0;

    switch (message)
    {
    case WM_CHAR:
        string[nIndex] = (char)wParam;
        nIndex++;
        InvalidateRect(hWnd, &rect, TRUE);
        break;
				...
	case WM_PAINT:
        {
            hdc = BeginPaint(hWnd, &ps);

            TextOutA(hdc, 0, 0, string, strlen(string));

            EndPaint(hWnd, &ps);
            break;
        }
        break;

WM_KEYDOWN

GetAsyncKeyState()

WM_MOUSEMOVE

그 외 마우스 메시지

마우스 버튼 코드