newWnd->SendMessage(WM_KEYDOWN, VK_RETURN, NULL);
The above code does not work. The variable newWnd is a pointer to a CEdit casted object. VK_RETURN shows in Spy++ to send text, but the above code just makes the text in the given window sit there. Spy++ gives me some lKeyData that I might need to use in the lParam - How would I do that if I need to?