Retrieve a ComboBox counts and items by using SendMessage API
问题 I want to get a count and list of ComboBox control which is not mine so that I cannot modify the code. For example, controlling the target app can be done by using SendMessage API. But, how can I retrieve a whole list of the target control by hooking? 回答1: You can find a list of ComboBox control messages here: MSDN - ComboBox Control Messages PInvoke - CB_ Constants To get items count you need to use CB_GETCOUNT message and to get text of an item you can use CB_GETLBTEXT message. Example Here