Share via


CMFCEditBrowseCtrl::EnableBrowseButton

Displays or does not display the browse button on the current edit browse control.

void EnableBrowseButton(
   BOOL bEnable=TRUE,
   LPCTSTR szLabel=_T("...")
);

Parameters

  • bEnable
    TRUE to display the browse button; FALSE not to display the browse button. The default value is TRUE.

  • szLabel
    The label that is displayed on the browse button. The default value is "...".

Remarks

If the bEnable parameter is TRUE, implement a custom action to perform when the browse button is clicked. To implement a custom action, derive a class from the CMFCEditBrowseCtrl class and then override its OnBrowse method.

If the bEnable parameter is TRUE, the browse mode of the control is BrowseMode_Default; otherwise, the browse mode is BrowseMode_None. For more information about browse modes, see the GetMode method.

Requirements

Header: afxeditbrowsectrl.h

See Also

Reference

CMFCEditBrowseCtrl Class

Hierarchy Chart

CMFCEditBrowseCtrl::GetMode

CMFCEditBrowseCtrl::EnableFileBrowseButton

CMFCEditBrowseCtrl::EnableFolderBrowseButton

CMFCEditBrowseCtrl::SetBrowseButtonImage