开发者

get handle of a child control?

Ciao, I would like to get handle of an combo box that is located on a dialog ? I can only get the Dialog handle but EnumWindows doesn't return the expected handle of the combobo开发者_运维技巧x. Could you help me?


EnumWindows only enumerates the Top level windows, in order to get to the child windows you could PInvoke EnumChildWindows(pinvoke.net), or according to this Code Project Article using FindWindowEx(pinvoke.net) should also work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜