Titus Information Systems, Inc.

Standard Library
CDirectoryFind Class

This class is inherited from CDirectoryLocator and provides additional public member functions to display and manage a modeless 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 403.  To use this class, inherit a specific class from this class and override the CDirectoryFind::OnOK() and, optionally, the CDirectoryFind::OnCancel() member functions.  The public member functions are as follows:

CDirectoryFind::CDirectoryFind()
This is the constructor.  It initializes the CDirectoryLocator::UseIcon data member to FALSE.
virtual BOOL CDirectoryFind::Create(CString Path, CWnd*pParent = NULL)
This public member function displays the modeless dialog box using the template stored in VASOLBP.DLL.  The dialog box is a child window of a frame window managed by the TFrameWnd class.  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.
virtual void CDirectoryFind::OnOK()
This function is invoked when the user selects the OK button on the dialog box.  It must be overridden to use the selected directory (folder) path, which is in the CDirectoryLocator::Path data member.  Be sure to call the base class, as it destroys the dialog box.
virtual void CDirectoryFind::OnCancel()
This function is invoked when the user selects the CANCEL button on the dialog box.  It may be overridden.  If so, be sure to call the base class, as it destroys the dialog box.


[ CBinaryFile | TCommandLineInfo | CCommaFile | TDateCtrl | CDDE | CDdeClient | CDdeServer ]
[ CDirectoryLocator | CDirectoryDialog | 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.