CMFCEditBrowseCtrl::GetMode
Retrieves the browse mode of the current edit browse control.
CMFCEditBrowseCtrl::BrowseMode GetMode() const;
Return Value
One of the enumeration values that specifies the current mode of the edit browse control. The browse mode determines whether the framework displays the browse button and what action occurs when a user clicks that button.
The following table lists the possible return values.
Value |
Description |
---|---|
BrowseMode_Default |
custom mode. A programmer-defined action is performed. |
BrowseMode_File |
file mode. The standard file browser dialog box is displayed. |
BrowseMode_Folder |
folder mode. The standard folder browser dialog box is displayed. |
BrowseMode_None |
The browse button is not displayed. |
Remarks
By default, a CMFCEditBrowseCtrl object is initialized to BrowseMode_None mode. Modify the browse mode with the CMFCEditBrowseCtrl::EnableBrowseButton, CMFCEditBrowseCtrl::EnableFileBrowseButton, and CMFCEditBrowseCtrl::EnableFolderBrowseButton methods.
Requirements
Header: afxeditbrowsectrl.h
See Also
Reference
CMFCEditBrowseCtrl::EnableBrowseButton
CMFCEditBrowseCtrl::EnableFileBrowseButton