SECBrowseFileEdit Class

class SECBrowseFileEdit: public SECBrowseEditBase

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

The SECBrowseFileEdit and  SECListBoxFileEditor classes are somewhat similar in purpose--both allow filenames to be entered by hand or by dialog. The distinction between them is that an SECBrowseFileEdit object is an edit control specialized for entering filenames, whereas an  SECListBoxFileEditor 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 SECBrowseFileEdit class.

Defined in: browedit.h

Class Members

Creation/initializers

SECBrowseFileEdit()

Constructs a SECBrowseFileEdit object.

Attributes

void  SetFileFilters(const TCHAR* pcszFilters)

Sets the file filter string.

void  SetDefaultExtension(const TCHAR* pcszExt)

Sets the default file extension.

void  SetInitialFileName(const TCHAR* pcszName)

Sets the initial filename.

void  ModifyDialogStyle( DWORD dwRemove, DWORD dwAdd )

Modifies the current dialog style flags.

Operations

virtual void  OnBrowse()

Launches the file selection dialog.

Protected data members

CString  m_strFilters

The current file filters.

CString  m_strInitialFile

The initial filename.

CString  m_strExt

The default file extension.

DWORD  m_dwDialogStyle

The dialog style.