home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the 3D Game Programming Gurus / gurus.iso / DirectX / dx9sdkcp.exe / SDK (C++) / Bin / DXUtils / Visual Studio 6.0 Wizards / Source Code / Chooser.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-11-12  |  2.0 KB  |  78 lines

  1. #if !defined(AFX_CHOOSER_H__4CD8A2A0_2E61_4500_8935_13CA99BBD87E__INCLUDED_)
  2. #define AFX_CHOOSER_H__4CD8A2A0_2E61_4500_8935_13CA99BBD87E__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 6
  8.  
  9. class CDialogChooser
  10. {
  11. public:
  12.     CDialogChooser();
  13.     ~CDialogChooser();
  14.  
  15.     // All calls by mfcapwz.dll to CDirectXAppWiz::Next
  16.     //  & CDirectXAppWiz::Back are delegated to these member
  17.     //  functions, which keep track of what dialog is up
  18.     //  now, and what to pop up next.
  19.     CAppWizStepDlg* Next(CAppWizStepDlg* pDlg);
  20.     CAppWizStepDlg* Back(CAppWizStepDlg* pDlg);
  21.     VOID InitDialogs();
  22.  
  23.     void UpdatePreviewAndSteps( CStatic* pStatic );
  24.     VOID SetPreviewBitmap( CStatic* pStatic );
  25.  
  26.     CStatic* m_pDlg1Preview;
  27.     CStatic* m_pDlg2Preview;
  28.     CStatic* m_pDlg3Preview;
  29.     CStatic* m_pDlg4Preview;
  30.     CStatic* m_pDlg5Preview;
  31.  
  32.     HBITMAP m_hBackgroundBitmap;
  33.  
  34.     HBITMAP m_hWinBlankPreview;
  35.     HBITMAP m_hWinTeapotPreview;
  36.     HBITMAP m_hWinTrianglePreview;
  37.     HBITMAP m_hWinGdiPreview;
  38.  
  39.     HBITMAP m_hDlgBlankPreview;
  40.     HBITMAP m_hDlgTeapotPreview;
  41.     HBITMAP m_hDlgTrianglePreview;
  42.     HBITMAP m_hDlgGdiPreview;
  43.  
  44.     INT     m_nCurrentPreviewID;
  45.     BOOL    m_nSteps;
  46.  
  47.     BOOL    m_bUseMFC;
  48.  
  49.     BOOL    m_bWindow;
  50.     BOOL    m_bMFCDialog;
  51.  
  52.     BOOL    m_bShowBlank;
  53.     BOOL    m_bShowTriangle;
  54.     BOOL    m_bShowTeapot;
  55.  
  56.     BOOL    m_bDirect3D;
  57.     BOOL    m_bDirectInput;
  58.     BOOL    m_bDirectMusic;
  59.     BOOL    m_bDirectPlay;
  60.     BOOL    m_bDirectSound;
  61.  
  62.     BOOL    m_bRegAccess;
  63.     BOOL    m_bIncludeMenu;
  64.  
  65. protected:
  66.     // Current step's index into the internal array m_pDlgs
  67.     int m_nCurrDlg;
  68.  
  69.     // Internal array of pointers to the steps
  70.     CAppWizStepDlg* m_pDlgs[LAST_DLG + 1];
  71. };
  72.  
  73.  
  74. //{{AFX_INSERT_LOCATION}}
  75. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  76.  
  77. #endif // !defined(AFX_CHOOSER_H__4CD8A2A0_2E61_4500_8935_13CA99BBD87E__INCLUDED_)
  78.