mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
shell32: Update currently selected folder in SHBrowseForFolder dialog.
This commit is contained in:
parent
9cd2d61b6e
commit
f984d4d7f9
1 changed files with 5 additions and 0 deletions
|
@ -556,10 +556,15 @@ static LRESULT BrsFolder_Treeview_Expand( browse_info *info, NMTREEVIEWW *pnmtv
|
|||
static HRESULT BrsFolder_Treeview_Changed( browse_info *info, NMTREEVIEWW *pnmtv )
|
||||
{
|
||||
LPTV_ITEMDATA lptvid = (LPTV_ITEMDATA) pnmtv->itemNew.lParam;
|
||||
WCHAR name[MAX_PATH];
|
||||
|
||||
lptvid = (LPTV_ITEMDATA) pnmtv->itemNew.lParam;
|
||||
ILFree(info->pidlRet);
|
||||
info->pidlRet = ILClone(lptvid->lpifq);
|
||||
|
||||
if (GetName(lptvid->lpsfParent, lptvid->lpi, SHGDN_NORMAL, name))
|
||||
SetWindowTextW( GetDlgItem(info->hWnd, IDD_FOLDERTEXT), name );
|
||||
|
||||
browsefolder_callback( info->lpBrowseInfo, info->hWnd, BFFM_SELCHANGED,
|
||||
(LPARAM)info->pidlRet );
|
||||
BrsFolder_CheckValidSelection( info, lptvid );
|
||||
|
|
Loading…
Reference in a new issue