Re: Root dir in open file dialog
From: Joseph M. Newcomer (newcomer_at_flounder.com)
Date: 01/17/05
- Next message: Joseph M. Newcomer: "Re: Always scrolled down CEdit"
- Previous message: Joseph M. Newcomer: "Re: how to make a cdc from a hdc ?"
- In reply to: Murrgon: "Root dir in open file dialog"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 17 Jan 2005 14:38:01 -0500
Set the initial directory. Then set the flag that disables the ability of the user to
change the directory. Unfortunately, this may be overkill. But right now it's all we've
got.
An alternative would be to create a subclass and implement the OnFolderChange handler,
which processes the notification message on directory change. Then, if the changed
directory is a subdirectory of the root, you let it go by, otherwise, you revert to the
saved directory. I haven't looked at this to see if it will really do the job
joe
On Mon, 17 Jan 2005 12:07:32 -0500, Murrgon <murrgon@hotmail.com> wrote:
>Is it possible to set the root folder that is used in an
>open file dialog? If so, how would one go about specifying
>it?
>
>Just to be clear, I don't want to just set the initial dir.
>I want to set the root of the explorer tree to a particular
>folder so the user cannot select anything "above" that dir.
>
>Thanks
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
- Next message: Joseph M. Newcomer: "Re: Always scrolled down CEdit"
- Previous message: Joseph M. Newcomer: "Re: how to make a cdc from a hdc ?"
- In reply to: Murrgon: "Root dir in open file dialog"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|