Titus Information Systems, Inc.

Standard Library
CDirectoryDialog Class

This class is inherited from CDirectoryLocator and provides additional public member functions to display and manage a modal dialog box from which the user may browse for a directory (folder).  The dialog box template is stored in VASOLBP.DLL with an ID of 402.  This function may be inherited or used directly from an instantiation.  The public member functions are as follows:

CDirectoryDialog::CDirectoryDialog(CWnd*pParent = NULL)
This is the constructor.  It initializes the CDirectoryLocator::UseIcon data member to TRUE.
virtual int CDirectoryDialog::DoModal(HICON Icon, CString&Path)
This public member function displays the modal dialog box using the template stored in VASOLBP.DLL.  The dialog box is application modal.  The dialog box icon will be set to Icon.  If Path contains a valid path name, the directory (folder) selection tree will be expanded to that path, the specified directory will be selected, and the CDirectoryLocator::Path data member will be initialized to that path.  When the user selects the OK button, Path will be set to the selected directory.  The function returns IDOK or IDCANCEL depending on the user's selection.
virtual void CDirectoryDialog::OnCancel()
This function is invoked when the user selects the CANCEL button on the dialog box.  It clears the selected path and causes the CDirectoryDialog::DoModal() function to return IDCANCEL.


[ CBinaryFile | TCommandLineInfo | CCommaFile | TDateCtrl | CDDE | CDdeClient | CDdeServer ]
[ CDirectoryLocator | CDirectoryFind | CDirectoryNew | CFileCopy | TFrameWnd ]
[ InterfaceExcel | CMaintFn | CPrintFile | CProcDialog | TPrintDialog | CProcPropertyPage ]
[ CProgress | CRegistry | CSDisCreate | CSDisFile | CSDisPage | CSDisView | CTableFile ]
[ CTaskIcon | TPresent | TTime | TDate | TDateTime | CTransferData | TWinApp | CXlTable ]

[ Stand-alone Programs | Standard Library | Conversion Functions | Utility Functions | COBOL Functions ]
[ Windows NT Library | COBOL Library | COBOL Interface | Command Prompt Abbreviations | Purchase Instructions ]

[ Home | Areas of Expertise | "We Do Windows" | Clients and Projects | Software Samples | Package Software Available ]
[ Contact Information | Business Software Philosophy | Church Software Philosophy ]
All contents of this web site are Copyright © Titus Information Systems, Inc., Phoenix, Arizona, U.S.A.