MFC CEdit control autocomplete

為{幸葍}努か 提交于 2019-12-08 05:00:37

问题


I want to implement the autocomplete capability for the MFC's CEdit control but I couldn't find anything on the web. I looked at the SHAutoComplete, but it seem like it's only useful for URL and file/folder path.

I was thinking of manually implement the function by programmatically display a popup menu at the blinking i-bar, but I encountered 2 problems:

  1. I don't know how to get the xy coordinate of the blinking i-bar
  2. I can't type anything after the popup menu is displayed

Can someone point me to an existing implementation that I can use?

来源:https://stackoverflow.com/questions/38855951/mfc-cedit-control-autocomplete

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