CMFCEditBrowseCtrl::SetBrowseButtonImage
Sets a custom image on the browse button of the edit browse control.
void SetBrowseButtonImage(
HICON hIcon,
BOOL bAutoDestroy = TRUE
);
void SetBrowseButtonImage(
HBITMAP hBitmap,
BOOL bAutoDestroy = TRUE
);
void SetBrowseButtonImage(
UINT uiBmpResId
);
Parameters
hIcon
The handle of an icon.hBitmap
The handle of a bitmap.uiBmpResId
The resource ID of a bitmap.bAutoDestroy
TRUE to delete the specified icon or bitmap when this method exits; otherwise, FALSE. The default value is TRUE.
Remarks
Use this method to apply a custom image to the browse button. By default, the framework obtains a standard image when the edit browse control is in file browse or folder browse mode.
Requirements
Header: afxeditbrowsectrl.h