Win32: How do I get the listbox for a combobox

Posted by Adam Tegen on Stack Overflow See other posts from Stack Overflow or by Adam Tegen
Published on 2010-06-08T15:17:13Z Indexed on 2010/06/08 15:22 UTC
Read the original article Hit count: 220

Filed under:
|
|

I'm writing some code and I need to get the window 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?

I know I'd be looking for a window class of ComboLBox that belongs to my process, but how do I narrow that down to the specific one I am looking for?

Adam

© Stack Overflow or respective owner

Related posts about win32

Related posts about combobox