开发者

Win32: How do I get the listbox for a combobox

开发者 https://www.devze.com 2023-01-02 13:07 出处:网络
I\'m writing some code and I need to get the wind开发者_如何学Cow handle of the listbox associated with a combo box.When looking in spy++, it looks like the parent of the listbox is the desktop, not t

I'm writing some code and I need to get the wind开发者_如何学Cow handle of the listbox associated with a combo box. When looking in spy++, it looks like the parent of the listbox is the desktop, not the combo box. How can I programmatically find the listbox window handle?


Send CB_GETCOMBOBOXINFO to the combo box, and it fills in a COMBOBOXINFO structure, which contains the window handles to the edit control and the list box control.

0

精彩评论

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

关注公众号