Overview
Group
Quick Info

Windows NT
Yes
Win95
Yes
Win32s
No
Import Library
user-defined
Header File
shlobj.h
Unicode
No
Platform Notes
BFFCALLBACK

BrowseCallbackProc

[Now Supported on Windows NT]

Specifies an application-defined callback function used with the SHBrowseForFolder function. The browse dialog box calls this function to notify it about events. The BFFCALLBACK type defines a pointer to this callback function.

int BrowseCallbackProc(

HWND hwnd,

UINT uMsg,

LPARAM lParam,

LPARAM lpData

);

Parameters

hwnd

Handle to the browse dialog box. The callback function can send the following messages to this window:

BFFM_ENABLEOK
Enables the OK button if the wParam parameter is nonzero or disables it if wParam is zero.
BFFM_SETSELECTION
Selects the specified folder. The lParam parameter is the PIDL of the folder to select if wParam is FALSE, or it is the path of the folder otherwise.
BFFM_SETSTATUSTEXT
Sets the status text to the null-terminated string specified by the lParam parameter.

uMsg

Value identifying the event. This parameter can be one of the following values:

BFFM_INITIALIZED
The browse dialog box has finished initializing. lpData is NULL.
BFFM_SELCHANGED
The selection has changed. lpData is a pointer to the item identifier list for the newly selected folder.

lParam

Message-specific value. For more information, see the description of uMsg.

lpData

Application-defined value that was specified in the lParam member of the BROWSEINFO structure.

Return Values

Returns zero.

See Also

BROWSEINFO

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database