custom combobox win32

こ雲淡風輕ζ 提交于 2019-12-24 12:06:37

问题


I am trying to implement an auto-suggest feature in an win32 combobox (C++). I want to achieve a behaviour that is similar to the google auto suggest function. When the user types something into the edit-control of the combobox, its listbox opens and shows all possible matches. The Problem is the default behaviour of a win32 combobox is to always select the closest match and put the complete text (selected) into the edit control when the list is opened. I need to avoid this behaviour. The list should just open - dont select something and dont change the text in the edit-control! I have tried to subclass the combobox and catch the CBN_DROPDOWN message, but this changes nothing on the default behavior.

Does anyone have a further idea? I dont want the auto-complete feature that just completes the text in the edit-control without opening the list.

Thx in advance Greets, Michael

来源:https://stackoverflow.com/questions/7728103/custom-combobox-win32

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!