Click here to Skip to main content
15,894,124 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
HI All,

I want to use CfileDialog. but i want to restrict to only one folder . i want to diabable user from accessing other drives and folders.

Is it possible. if not please suggest alternative

Thanks
Karth
Posted
Comments
Member 11524998 23-May-15 14:05pm    
win xp 32 bit
CHill60 23-May-15 14:22pm    
I believe you could try the OFN_NOCHANGEDIR flag, or capture the OnFolderChange message.
Not posting this as a solution because it's ages since I did anything like this and someone else is bound to have a better/fuller solution
chandanadhikari 25-May-15 9:37am    
maybe CFileDialog::HideControl or CFileDialog::RemoveControlItem can help.

1 solution

See the different options available at https://msdn.microsoft.com/en-us/library/dk77e5e7.aspx[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900