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

  1. #if !defined($$FILE_NAME_SYMBOL$$_INCLUDED_)
  2. #define $$FILE_NAME_SYMBOL$$_INCLUDED_
  3.  
  4. // chooser.h : declaration of the CDialogChooser class
  5. //             This class keeps track of what dialogs to pop up when.
  6.  
  7. #define LAST_DLG $$MPDLGS_INDEX_LAST$$
  8.  
  9. class CDialogChooser
  10. {
  11. public:
  12.     CDialogChooser();
  13. $$IF(HAS_NEW_STEPS)
  14.     ~CDialogChooser();
  15. $$ENDIF //HAS_NEW_STEPS
  16.  
  17.     // All calls by mfcapwz.dll to C$$Safe_root$$AppWiz::Next
  18.     //  & C$$Safe_root$$AppWiz::Back are delegated to these member
  19.     //  functions, which keep track of what dialog is up
  20.     //  now, and what to pop up next.
  21.     CAppWizStepDlg* Next(CAppWizStepDlg* pDlg);
  22.     CAppWizStepDlg* Back(CAppWizStepDlg* pDlg);
  23.  
  24. protected:
  25. $$IF(APWZSEQ_EXE)
  26.     // Current step's index into the current track (defined in chooser.cpp).
  27. $$ELSE //!APWZSEQ_EXE
  28.     // Current step's index into the internal array m_pDlgs
  29. $$ENDIF //APWZSEQ_EXE
  30.     int m_nCurrDlg;
  31.  
  32.     // Internal array of pointers to the steps
  33.     CAppWizStepDlg* m_pDlgs[LAST_DLG + 1];
  34. $$IF(APWZSEQ_EXE)
  35.  
  36.     // Current track (MDI/SDI app or dialog-based app; see chooser.cpp).
  37.     int m_nTrack;
  38. $$ENDIF
  39. };
  40.  
  41.  
  42. //{{AFX_INSERT_LOCATION}}
  43. // $$INSERT_LOCATION_COMMENT$$
  44.  
  45. #endif // !defined($$FILE_NAME_SYMBOL$$_INCLUDED_)
  46.