Home > Software engineering >  How to let commondialog open window allows only browsing, prohibit the user action file
How to let commondialog open window allows only browsing, prohibit the user action file

Time:12-22

Commondialog showopen or showsave, the default is open the computer resource manager, can create folders, rename, delete operations, such as how to ban users manipulate files in this window, only provide browsing, selected, the operation of open (save)?

Flags=cdlOFNAllowMultiselect, although you can have the effect, but the interface is changed, and the function of the multiselect is not wanted,

CodePudding user response:

As if there is no simple method, because the underlying API to provide customers with the function of these, to simulate or write their own window, or add a hook to intercept to ban, all the trouble,

CodePudding user response:

reference 1st floor of123 response:
if there is no simple good method, because the underlying API to provide customers with the function of these, to simulate or write their own window, or add a hook to intercept to ban, are quite troublesome,


Original program system limitation, as long as to the operation of the folder set user permissions, program can't fooling around, but now because of compatibility issues, basically be run with administrator, system permissions can be evaded,

It's hard not to involve the system setting, think way,

CodePudding user response:

Easy to use
And
Enough safety
Is a pair of irreconcilable conflict.

CodePudding user response:

Make a browse window,
  • Related