Quote:
Originally Posted by serr
You'd think right?
|
What I still don't know is if cockos is using
SHBrowseForFolder but if so, it is entirely possible...
Code:
BROWSEINFO bi;
LPMALLOC pMalloc = NULL;
LPITEMIDLIST pidl;
char acStr[MAX_PATH];
CString initialDir("C:\\SomeDir");
CString resultsDir;
if ( SHGetMalloc ( &pMalloc) != NOERROR ) return;
ZeroMemory ( &bi, sizeof ( BROWSEINFO ));
bi.pidlRoot = NULL;
bi.pszDisplayName = acStr;
bi.ulFlags = BIF_RETURNONLYFSDIRS | BIF_RETURNFSANCESTORS;
bi.lpszTitle = "Please Select Directory";
bi.lParam = (long)(LPCTSTR)initialDir; <=============
....
People here could probably grab coffee and read the doc I linked to above and answer every question in the thread with the only exception being Cockos may use some other method.