home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / metkit / setupdlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-06-07  |  1.8 KB  |  70 lines

  1. //    Copyright (C) 1996, 1997 Meta Four Software.  All rights reserved.
  2. //
  3. //    Setup dialog sample code
  4. //
  5. //! rev="$Id: setupdlg.h,v 1.4 1997/05/27 00:06:19 jcw Rel $"
  6.  
  7. #include "scandisk.h"
  8.  
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CSetupDialog dialog
  11.  
  12. class CSetupDialog : public CDialog, public cStatusHandler
  13. {
  14. // Construction
  15. public:
  16.     CSetupDialog(CWnd* pParent = NULL); // standard constructor
  17.     
  18.     void Execute(BOOL now);
  19.     
  20. // Dialog Data
  21.     //{{AFX_DATA(CSetupDialog)
  22.     enum { IDD = IDD_SETUP_DIALOG };
  23.     CButton m_okBtn;
  24.     CButton m_browseBtn;
  25.     CButton m_deleteBtn;
  26.     CButton m_addBtn;
  27.     CButton m_updateBtn;
  28.     CStatic m_status;
  29.     CEdit   m_root;
  30.     CString m_name;
  31.     //}}AFX_DATA
  32.  
  33. private:
  34.     CString m_origRoot;
  35.     BOOL m_exists;
  36.     int m_timer;
  37.     BOOL m_allowScan;
  38.     CMyEdit m_nameEditCtrl;
  39.     bool m_scanNow;
  40.     
  41. // Implementation
  42. protected:
  43.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  44.     virtual void OnCancel();
  45.  
  46.     virtual bool UpdateStatus(const char* text);
  47.     
  48.     void NameChange(BOOL delay);
  49.     void ScanDirectories();
  50.     void InspectCatalog();
  51.     void AdjustButtons(BOOL inScan_ =FALSE);
  52.     
  53.     // Generated message map functions
  54.     //{{AFX_MSG(CSetupDialog)
  55.     afx_msg void OnAddBtn();
  56.     virtual BOOL OnInitDialog();
  57.     afx_msg void OnUpdateBtn();
  58.     afx_msg void OnDelBtn();
  59.     afx_msg void OnBrowseBtn();
  60.     afx_msg void OnChangeName();
  61.     afx_msg void OnChangeRoot();
  62.     afx_msg void OnTimer(UINT nIDEvent);
  63.     afx_msg void OnKillfocusRoot();
  64.     afx_msg void OnClose();
  65.     //}}AFX_MSG
  66.     DECLARE_MESSAGE_MAP()
  67. };
  68.  
  69. /////////////////////////////////////////////////////////////////////////////
  70.