SECDirSelectDlg Class
class SECDirSelectDlg: public CFileDialog
This helper class provides directory selection under Win16 and Win32 by using a customization of the common dialogs.
Defined in: browedit.h
enum DialogStyles
Dialog styles
Class Members
Creation/initialization
SECDirSelectDlg(LPCTSTR lpcszCaption, CWnd* pWndParent = NULL, LPCTSTR lpcszInitialDir = NULL, DWORD dwFlags = 0)
Constructs a SECDirSelectDlg object.
SECDirSelectDlg(WORD wDialogStyle = win16Style, LPCTSTR lpszCaption = NULL, LPCTSTR lpszInitialDir = NULL, CWnd* pParentWnd = NULL, DWORD dwFlags = 0)
Constructs a SECDirSelectDlg object.
Attributes
WORD SetDialogStyle( const WORD& wNewStyle )
Sets the style flags for the dialog.
WORD QueryDialogStyle() const
Retrieves the style flags set for this dialog.
void SetBrowseCaption( LPCTSTR lpszCaption )
Sets the text to use in the directory selection dialog’s caption.
void SetInitialDir( LPCTSTR lpszCaption )
Sets the initial directory to be displayed in the directory selection dialog.
void GetPath(CString& strPath) const
Retrieves the selected path.
Operations
virtual SEC_INT DoModal()
Invokes the modal dialog box.
Overridable
virtual BOOL BrowseForFolder( CString& strPath )
Locates the selected folder if it exists (32-bit only).
virtual BOOL OnInitDialog()
Called to initialize the dialog.
Protected data members
WORD m_wDialogStyle
The dialog style flags.
TCHAR m_szFileBuffer[_MAX_PATH]
A buffer containing the pathname.
CWnd* m_pParentWnd
A pointer to this dialog's parent window.