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

  1. // chooser.h : declaration of the CDialogChooser class
  2. //
  3. // This class is where you set up the sequence of steps that will
  4. // be followed in your custom AppWizard.  These steps can include
  5. // both standard AppWizard steps and your own custom steps.
  6. //
  7. // This is a part of the Microsoft Foundation Classes C++ library.
  8. // Copyright (C) 1995 Microsoft Corporation
  9. // All rights reserved.
  10. //
  11. // This source code is only intended as a supplement to the
  12. // Microsoft Foundation Classes Reference and related
  13. // electronic documentation provided with the library.
  14. // See these sources for detailed information regarding the
  15. // Microsoft Foundation Classes product.
  16.  
  17. #ifndef __CHOOSER_H__
  18. #define __CHOOSER_H__
  19.  
  20. #define LAST_DLG 7
  21.  
  22. class CDialogChooser
  23. {
  24. public:
  25.     CDialogChooser();
  26.     ~CDialogChooser();
  27.  
  28.     // All calls by mfcapwz.dll to CLogowizAppWiz::Next
  29.     //  & CLogowizAppWiz::Back are delegated to these member
  30.     //  functions, which keep track of what dialog is up
  31.     //  now, and what to pop up next.
  32.     CAppWizStepDlg* Next(CAppWizStepDlg* pDlg);
  33.     CAppWizStepDlg* Back(CAppWizStepDlg* pDlg);
  34.  
  35. protected:
  36.     // Current step's index into the current track (defined in chooser.cpp).
  37.     int m_nCurrDlg;
  38.  
  39.     // Internal array of pointers to the steps
  40.     CAppWizStepDlg* m_pDlgs[LAST_DLG + 1];
  41.  
  42.     // Current track (MDI/SDI app or dialog-based app; see chooser.cpp).
  43.     int m_nTrack;
  44. };
  45.  
  46. #endif //__CHOOSER_H__
  47.