void CCountDlg::OnBnClickedBtnSelect()
{
// TODO: 在此添加控件通知处理程序代码
TCHAR szPath[MAX_PATH];
BROWSEINFO br;
ITEMIDLIST * pItem;
br.iImage = 0;
br.pszDisplayName = 0;
br.lParam = 0 ;
br.lpfn = 0 ;
br.lpszTitle = "请选择路径";
br.pidlRoot = 0 ;
br.ulFlags = BIF_RETURNONLYFSDIRS;
pItem = SHBrowseForFolder(&br);
if ( SHGetPathFromIDList(pItem,szPath) == TRUE)
{
m_edtPath.SetWindowText( szPath);
}