Directory Control
-
I need to know how to control a directory structure from the "Open" dialog window from an application. I need to be able to restict the user from going to directories that have been determined they should not enter and restrict them to a certain directory. Anyone have any idea how to do this not in MFC, win32 api format. Thanks,
-
I need to know how to control a directory structure from the "Open" dialog window from an application. I need to be able to restict the user from going to directories that have been determined they should not enter and restrict them to a certain directory. Anyone have any idea how to do this not in MFC, win32 api format. Thanks,
You can restrict them to a single directory using the OFN_NOCHANGEDIR flag. If you need something a little more complicated then create your own OpenFile dialog.
-
You can restrict them to a single directory using the OFN_NOCHANGEDIR flag. If you need something a little more complicated then create your own OpenFile dialog.
waldermort wrote:
You can restrict them to a single directory using the OFN_NOCHANGEDIR flag.
Wrong. That flag restores the current directory to its original value if the user changed the directory while searching for files.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
-
I need to know how to control a directory structure from the "Open" dialog window from an application. I need to be able to restict the user from going to directories that have been determined they should not enter and restrict them to a certain directory. Anyone have any idea how to do this not in MFC, win32 api format. Thanks,
See here.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
-
waldermort wrote:
You can restrict them to a single directory using the OFN_NOCHANGEDIR flag.
Wrong. That flag restores the current directory to its original value if the user changed the directory while searching for files.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
Thanks for pointing that out, learn something new everyday :->
-
I need to know how to control a directory structure from the "Open" dialog window from an application. I need to be able to restict the user from going to directories that have been determined they should not enter and restrict them to a certain directory. Anyone have any idea how to do this not in MFC, win32 api format. Thanks,