Get child window handles in C#

一世执手 提交于 2020-01-03 19:29:10

问题


I'm starting a process in C# and then sending Windows messages to that process with SendMessage. Usually I send the messages to Process.MainWindowHandle, but in some instances I might need to find a child window handle and send messages there instead. How would I do that in C# and what are the options for finding child windows (i.e. do a need to know the name of the window or are there other options)?


回答1:


Take a look at EnumChildWindows (pinvoke.net)



来源:https://stackoverflow.com/questions/1456353/get-child-window-handles-in-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!