SECBrowseDirEdit Class

class SECBrowseDirEdit: public SECBrowseEditBase

The SECBrowseDirEdit class provides the functionality of a directory edit control. A directory edit is a browse edit that is specially suited for entering a directory pathname. (See the  SECBrowseEditBase class overview for a description of a browse edit.) With a directory edit, the user can type in a directory name directly or can pick a directory from a dialog. When the user presses the browse button, a modal directory selection dialog appears. After the user picks a directory from the dialog, its pathname is automatically entered into the edit field.

SECBrowseDirEdit inherits most of its functionality from  SECBrowseEditBase. In fact, its only method is an override of OnBrowse, which launches a directory selection dialog when the browse button is pressed.

The SECBrowseDirEdit and  SECListBoxDirEditor classes are somewhat similar in purpose--both allow directory names to be entered by hand or by dialog. The distinction between them is that an SECBrowseDirEdit object is an edit control specialized for entering directory pathnames, whereas an  SECListBoxDirEditor is a list box specialized for the same purpose.

See the TOOLMENU sample in the ...\SAMPLES\STANDARD\UIEXT\TOOLMENU directory for a demonstration of the SECBrowseDirEdit class.

Defined in: browedit.h

Class Members

Creation/initialization

SECBrowseDirEdit()

Constructs a SECBrowseDirEdit object.

enum  DlgStyles

Dialog styles

Attributes

void  SetDialogStyle( WORD wStyle )

Sets the dialog style flags

WORD  GetDialogStyle() const

Retrieves the dialog style flags

Operations

virtual void  OnBrowse()

Launches the directory selection dialog

Protected data members

WORD  m_wDialogStyle

Dialog style flags