Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I add an editable ComboBox to Vista's Common Item Dialog?

Vista introduced the new Common Item Dialogs for opening and saving files that supersede the old Common File Dialogs. Custom controls can be added by utilizing the simple IFileDialogCustomize interface. One of them is a standard ComboBox which is non-editable. Is there any way to create an editable ComboBox or modify an existing one (by adding the CBS_DROPDOWN style)?

like image 538
gix Avatar asked Nov 15 '22 16:11

gix


1 Answers

Unfortunately, you can't. There is no guarantee that the controls you add with IFileDialogCustomize are Win32 controls. (And in fact, I believe they aren't.) Since they aren't Win32 control, there's nothing to set the CBS_DROPDOWN style on. Sorry.

like image 148
Raymond Chen Avatar answered Dec 19 '22 01:12

Raymond Chen