What would be the best way to go about finding what the active control is on any window? I am going to be sending the WM_PASTE message to it. ChildWindowFromPoint has not been returning a fair few of the selected controls.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ah, yeah. WM_Paste….
Winform application?
Why do you assume that the active window can receive them? I mean, unless it is an activeX control…. it would not ahve it’s own lower level message pump. It would react on events propagated within the .NET framework… only active x (native) controls an dthe window IIRC handle windows messages.