共用方式為


CFileDialog::AddPlace

Adds a folder to the list of places available for the user to open or save items.

void AddPlace(
   LPCWSTR lpszFolder,
   FDAP fdap = FDAP_TOP
) throw();
void AddPlace(
   IShellItem* psi,
   FDAP fdap = FDAP_TOP
) throw();

Parameters

  • lpszFolder
    A path to the folder to be made available to the user. This can only be a folder.

  • fdap
    Specifies where the folder is placed within the list.

  • psi
    A pointer to an IShellItem that represents the folder to be made available to the user. This can only be a folder.

Requirements

Header: afxdlgs.h

See Also

Reference

CFileDialog Class