开发者

SHBrowseForFolder, But With Textbox to Navigate

I found all the code I need to make SHBrowseForFolder work in my application. But I hate that it forces you to do everything in the little folder window, without a text box to navigate by typing.

In Windows, I know I commonly see 开发者_运维问答a different folder browse dialog that does let me type folder names and use the other regular navigation keys to get around to select the desired folder (backspace, "..", Enter, and so on).

Is there a different API call for that?


Try this:

a.ulFlags = BIF_RETURNONLYFSDIRS | BIF_NEWDIALOGSTYLE | BIF_EDITBOX;


No, you have to do something like this: SelectDialog - A Multiple File and Folder Select Dialog (http://beta.codeproject.com/KB/MFC/SelectDialog.aspx)


When you call SHBrowseForFolder you just need to add the BIF_EDITBOX flag to the ulFlags field.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜