HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: Georg on 2012-08-02 11:16:47

Title: Folder Dialog
Post by: Georg on 2012-08-02 11:16:47
Hi!

I have a question to Peter.
Foobar2000 uses pretty nice folder request dialog.
Is this dialog open source?

Thanks.
Title: Folder Dialog
Post by: dhromed on 2012-08-02 12:11:43
You mean the dialog from File > Add Folder? That's a standard Windows feature.
Title: Folder Dialog
Post by: mudlord on 2012-08-02 14:02:57
Most likely a CFileDialog which is derived.
Look up WTL docs for more info.
Title: Folder Dialog
Post by: kode54 on 2012-08-03 05:20:36
Nope, it uses this (http://msdn.microsoft.com/en-us/library/windows/desktop/bb775834(v=vs.85).aspx) instead on Windows Vista and up. This page has some example code (http://www.codeproject.com/Articles/16678/Vista-Goodies-in-C-Using-the-New-Vista-File-Dialog).
Title: Folder Dialog
Post by: mudlord on 2012-08-03 05:25:39
Uh, then how does it work on XP? SHBrowseForFolder?
Title: Folder Dialog
Post by: kode54 on 2012-08-03 06:06:36
Oh, that. Yeah, that's what it uses on XP. SHBrowseForFolder on XP, that IFileDialog interface on Vista and up.