Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there Path Edit Control in Win32?

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?

like image 787
noelicus Avatar asked Oct 12 '11 14:10

noelicus


People also ask

Is a single line edit control?

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 (+).

What are edit controls?

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.


1 Answers

You can use the standard edit control and call SHAutoComplete. Like this:

SHAutoComplete(editWnd, SHACF_DEFAULT);

The system will do the rest for you.

like image 185
David Heffernan Avatar answered Oct 14 '22 03:10

David Heffernan