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:
- I don't know how to get the xy coordinate of the blinking i-bar
- 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