{I+=codeWee;}
[C++] WinApi: Select Folder DialogBox(SHBrowseForFolder)
LPITEMIDLIST pidlBrowse;
BROWSEINFO BRinfo;
BRinfo.hwndOwner = m_hWnd; 
BRinfo.pidlRoot = NULL;
BRinfo.pszDisplayName = NULL;
BRinfo.lpszTitle = "Select Folder";
BRinfo.ulFlags = BIF_RETURNONLYFSDIRS | BIF_NEWDIALOGSTYLE;
BRinfo.lpfn = NULL;
BRinfo.lParam = NULL;

pidlBrowse = SHBrowseForFolder(&BRinfo); 

if (pidlBrowse != NULL)
{
	char szPath[255];
	SHGetPathFromIDList(pidlBrowse, szPath); 
	// ...
}
HTML | PHP | C++ | DirectX11 | Javascript | C# | HTML5 | ASP | SQL | General | CSS | Oculus Rift | Unity3d | Virtools SDK | Tip | NSIS | PowerShell | node.js | Web API | RTSP | All
Copyright© 2016 CodeWee.com All rights reserved.