Mercurial > projects > dynamin
diff dynamin/gui/windows_directory_dialog.d @ 20:63cbfb167240
Got the COM code working in DirectoryDialog, but
it doesn't do what I thought it would. Instead of just preselecting the directory, it shows only it and its subfolders.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Fri, 24 Jul 2009 15:11:22 -0500 |
parents | 836a064828e8 |
children | d0ce1db78819 |
line wrap: on
line diff
--- a/dynamin/gui/windows_directory_dialog.d Fri Jul 24 00:40:31 2009 -0500 +++ b/dynamin/gui/windows_directory_dialog.d Fri Jul 24 15:11:22 2009 -0500 @@ -35,11 +35,10 @@ bi.ulFlags |= BIF_RETURNONLYFSDIRS; bi.ulFlags |= BIF_USENEWUI; - // TODO: I can't get this #!@#! COM stuff working... - //IShellFolder* shf; + //IShellFolder shf; //SHGetDesktopFolder(&shf); //ITEMIDLIST* pidlInit; - //shf.ParseDisplayName(null, null, toWcharPointer(directory), null, &pidlInit, null); + //shf.ParseDisplayName(null, null, toWcharPtr(directory), null, &pidlInit, null); //shf.Release(); //bi.pidlRoot = pidlInit;