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

  1. // typedlg.h : header file.  This dialog is step 1 and is used to select
  2. //              the type of custom AppWizard to create
  3. //
  4. // Copyright (c) 1985-1998, Microsoft Corporation. All rights reserved.
  5. //
  6.  
  7. // These enumerate the different types of custom AppWizards we can create.
  8. //  These must be in the same order as the corresponding radio buttons
  9. enum
  10. {
  11.     CUSTOMTYPE_ZAP,
  12.     CUSTOMTYPE_SEQUENCE,
  13.     CUSTOMTYPE_BASE,
  14.     CUSTOMTYPE_MAX,
  15. };
  16.  
  17. class CCustomTypeDlg : public CAppWizStepDlg
  18. {
  19. // Construction
  20. public:
  21.     CCustomTypeDlg();   // standard constructor
  22.     virtual BOOL OnDismiss();
  23.     void UpdateTitle(const CString& strRoot);
  24.  
  25. // Dialog Data
  26.     //{{AFX_DATA(CCustomTypeDlg)
  27.     enum { IDD = IDD_CUSTOMAW_TYPE };
  28.     int     m_nCustomType;
  29.     UINT    m_nCustomSteps;
  30.     CString m_strTitle;
  31.     //}}AFX_DATA
  32.  
  33.  
  34. // Overrides
  35.     // ClassWizard generated virtual function overrides
  36.     //{{AFX_VIRTUAL(CCustomTypeDlg)
  37.     protected:
  38.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  39.     //}}AFX_VIRTUAL
  40.  
  41. // Implementation
  42. protected:
  43.     void EnableCustomSteps();
  44.     void SetBitmap();
  45.     UINT m_nBitmap;
  46.     CString m_strLastCustomSteps;   // Remembers #custom steps, before it's reset to 0
  47.  
  48.     void SetCustomTypeMacros();
  49.     void DefineTitleMacro();
  50.  
  51.     // Generated message map functions
  52.     //{{AFX_MSG(CCustomTypeDlg)
  53.     afx_msg BOOL OnClickedRadio(UINT nID);
  54.     afx_msg void OnPaint();
  55.     //}}AFX_MSG
  56.     DECLARE_MESSAGE_MAP()
  57. };
  58.