• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

Odd SendMessage problem

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?

1 Solution
Vinayak KumbarSr Program ManagerCommented:

Instead of SendMessage(), try using PostMessage() function!!!?
SuperMarioAuthor Commented:
yeeeeah!! thank you so much!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now