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

  1. // cstm1dlg.h : header file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and Microsoft
  9. // QuickHelp and/or WinHelp documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CCustom1Dlg dialog
  15. #ifndef __CUSTMDLG1__
  16. #define __CUSTMDLG1__
  17.  
  18. //Flags set depending on user choices about sample text.
  19. #define NONE 0
  20. #define READFILE 2
  21. #define ENTERTEXT 3
  22.  
  23. // Return values from sample text radio buttons.
  24. #define TEXT_FROM_FILE 0
  25. #define TEXT_FROM_KEYBOARD 1
  26. #define NO_SAMPLE_TXT 2
  27.  
  28. // The number of steps the Wizard will have based on the user selection
  29. #define NO_DATA_STEPS 1
  30. #define READ_FILE_STEPS 2
  31. #define ENTER_DATA_STEPS 2
  32.  
  33. class CCustom1Dlg : public CAppWizStepDlg
  34. {
  35. // Construction
  36. public:
  37.     CCustom1Dlg();
  38.     virtual BOOL OnDismiss() ;
  39.     static int m_DataSource ;
  40.     CBitmap bTVOnly, bTVandTxtVw, bfromFile, bfromKb, bNoSampletxt,*pSampletxtBMap, * pViewsBMap ;
  41.  
  42.     void ClearSampleTxtSettings() ;
  43.     //{{AFX_DATA(CCustom1Dlg)
  44.     enum { IDD = IDD_FEATURES };
  45.     CStatic m_PicFrame;
  46.     int     m_TextView;
  47.     int     m_SampleDataSource;
  48.     //}}AFX_DATA
  49.  
  50.  
  51. // Overrides
  52.     // ClassWizard generated virtual function overrides
  53.     //{{AFX_VIRTUAL(CCustom1Dlg)
  54.     protected:
  55.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  56.     //}}AFX_VIRTUAL
  57.  
  58. // Implementation
  59. protected:
  60.     void DrawBitmaps() ;
  61.     // Generated message map functions
  62.     //{{AFX_MSG(CCustom1Dlg)
  63.     virtual BOOL OnInitDialog();
  64.     afx_msg void OnNodata();
  65.     afx_msg void OnEditdata();
  66.     afx_msg void OnReadfile();
  67.     afx_msg void OnTextView();
  68.     afx_msg void OnNoTextView();
  69.     afx_msg void OnPaint();
  70.     afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  71.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  72.     //}}AFX_MSG
  73.     DECLARE_MESSAGE_MAP()
  74. };
  75. #endif //  __CUSTMDLG1__
  76.