Winecfg -> browse for folder

Andreas Mohr andi at rhlx01.fht-esslingen.de
Wed Nov 24 07:15:15 CST 2004


Hi,

On Wed, Nov 24, 2004 at 02:03:16PM +0100, Robert van Herk wrote:
> In fact, the only ways I can think of to make this feature available 
> just for Wine programs, is
> - Calling the Unix api directly from winecfg (I guess that is possible?) 
> just to read out the directory contents and then put them into a list 
> box. This requires copying the code of the SHBrowseForFolder listbox, 
> which is a bit untidy too, since the Windows file system is then not used.
> - Indeed by making some extra APIs that are not available in Windows. 
> This is indeed a bit untidy, but probably requires less code duplication.
Indeed, this is the best bet, actually even much better than embedding
non-Wine file browser dialogs. Just make a nice custom dialog which displays
directory structures read via direct Unix calls, that should be the way to go.
(perhaps starting with the home directory of the user here is better,
but more likely it's not).

Andreas Mohr



More information about the wine-devel mailing list