Compartilhar via


BFFM_SETSELECTION (Compact 2013)

3/28/2014

This message selects a folder in the Browse For Folder dialog box.

Syntax

BFFM_SETSELECTION
    wParam = (WPARAM)fPath;
    lParam = (LPARAM)pFolder;

Parameters

  • wParam
    Indicates whether the lParam parameter contains a pointer to an ITEMIDLIST structure (PIDL) for the folder or a path to the folder. TRUE indicates that lParam contains a path to the folder. FALSE indicates that lParam contains a PIDL for the folder.
  • lParam
    Indicates the folder to select in the dialog box. If wParam is TRUE, set lParam as a pointer to a zero-terminated string that contains the path for the folder. If wParam is FALSE, set lParam to the PIDL for the folder.

Remarks

You can send this message from within your implementation of the BrowseCallbackProc function, which specifies an application-defined callback function used with the SHBrowseForFolder function. The Browse For Folder dialog box calls BrowseCallbackProc to notify the application about events.

Requirements

Header

shlobj.h

See Also

Reference

Shell Messages
BrowseCallbackProc
ITEMIDLIST