Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

SHBrowseForFolder

dbruceg
Beginner
778 Views

I just got a nit-picking request to change a BrowseForFolder dialog to make it look like a GetOpenFile/GetSaveFile dialog - specifically, to replace the "Browse ForFolder" in the title bar with the user specified string that currently appears below the title bar (plus a few more trivialities). If I could get the code for any one of those three common dialogs, it would be easy. Anybody have any ideas?

Bruce

0 Kudos
2 Replies
anthonyrichards
New Contributor III
778 Views

That's a REAL nit-pick if the title supplied in the BROWSEINFO structure is not enough!
It looks like you will have to investigate usingh a callback function (address supplied by youin BFFCALLBACK item in BROWSINFO) to be called whenever you issue ShBrowseFor Folder. You then have to find the handle to the title-bar window and then send a message to it to chnage the text. How you do that I have no idea.

0 Kudos
dbruceg
Beginner
778 Views

It's a nit-pick all right, and there's another one: they want the dlg box to be in the upper left corner. Actually, though, the nit-picking comes from areasonable complaint. They have an application that uses all three dialogs in a loop, and when you're running it, the rapid changes in dlg box position and style is pretty annoying. What is REALLY needed is a "select directory" option in GetFileOpen.

Bruce

0 Kudos
Reply