简体   繁体   English

掌握儿童控制权?

[英]get handle of a child control?

Ciao, I would like to get handle of an combo box that is located on a dialog ? Ciao,我想获取位于对话框上的组合框的句柄吗? I can only get the Dialog handle but EnumWindows doesn't return the expected handle of the combobox. 我只能获得Dialog句柄,但EnumWindows不会返回组合框的预期句柄。 Could you help me? 你可以帮帮我吗?

EnumWindows仅枚举顶级窗口,为了进入子窗口,您可以PInvoke EnumChildWindows (pinvoke.net),或者根据此代码项目文章,使用FindWindowEx (pinvoke.net)也应起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM