I would like to add an edit box (or is it a combo box?) for entering a file-path using Visual C Win32 so that it offers auto-complete - the same as when you type in Windows Explorer's address bar.
Is there a common control or property I'm missing that allows me to do that?
The single-line edit control has the ES_PASSWORD style. By default, edit controls with this style display an asterisk for each character that is typed by the user. This example, however, uses the EM_SETPASSWORDCHAR message to change the default character from an asterisk to a plus sign (+).
An edit control is a rectangular control window typically used in a dialog box to enable the user to enter and edit text. Edit Control Text Operations. The system automatically processes all user-initiated text operations and notifies the application when the operations are completed.
You can use the standard edit control and call SHAutoComplete
. Like this:
SHAutoComplete(editWnd, SHACF_DEFAULT);
The system will do the rest for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With