home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / appwiz / hierwiz / chooser.h < prev    next >
C/C++ Source or Header  |  1998-03-05  |  1KB  |  45 lines

  1. // chooser.h : declaration of the CDialogChooser class
  2. //             This class keeps track of what dialogs to pop up when.
  3. //
  4. // This is a part of the Microsoft Foundation Classes C++ library.
  5. // Copyright (C) 1992-1995 Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to the
  9. // Microsoft Foundation Classes Reference and Microsoft
  10. // QuickHelp and/or WinHelp documentation provided with the library.
  11. // See these sources for detailed information regarding the
  12. // Microsoft Foundation Classes product.
  13.  
  14. #ifndef __CHOOSER_H__
  15. #define __CHOOSER_H__
  16.  
  17. #define LAST_DLG 3
  18. #define START_PAGE      0   //start page
  19. #define FEATURES_PAGE   1   //features page (CCustom1Dlg)
  20. #define LOADFILE_PAGE   2   //load sample file page (CLoadFileDlg)
  21. #define EDITDATA_PAGE   3   //edit sample data page (CEditDlg)
  22.  
  23. class CDialogChooser
  24. {
  25. public:
  26.     CDialogChooser();
  27.     ~CDialogChooser();
  28.  
  29.     // All calls by mfcapwz.dll to CCustdeadAppWiz::Next
  30.     //  & CCustdeadAppWiz::Back are delegated to these member
  31.     //  functions, which keep track of what dialog is up
  32.     //  now, and what to pop up next.
  33.     CAppWizStepDlg* Next(CAppWizStepDlg* pDlg);
  34.     CAppWizStepDlg* Back(CAppWizStepDlg* pDlg);
  35.  
  36. protected:
  37.     // Current step's index into the internal array m_pDlgs
  38.     int m_nCurrDlg;
  39.     CCustom1Dlg pg1 ;
  40.     // Internal array of pointers to the steps
  41.     CAppWizStepDlg* m_pDlgs[LAST_DLG + 1];
  42. };
  43.  
  44. #endif //__CHOOSER_H__
  45.