I’ve got a specific window with the window style WS_CHILDWINDOW. It’s the child window of a window of which I’ve got the handle already. This window is the second-last one. How do I get it?
It’s C++ by the way.
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.
As an alternative to
EnumChildWindowsposted above, you can use this:A drawback of this approach is a possibility of a race if a new child window is added at the end of Z-order between steps 2 and 3. Though in practice it shouldn’t be a problem. 🙂