View Single Post
Old 06-16-2017, 08:06 AM   #43
karbomusic
Human being with feelings
 
karbomusic's Avatar
 
Join Date: May 2009
Posts: 29,260
Default

Quote:
Originally Posted by serr View Post
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.
__________________
Music is what feelings sound like.
karbomusic is online now   Reply With Quote