home *** CD-ROM | disk | FTP | other *** search
/ Computer Buyer 1998 October / dpcb1098.iso / Business / Maxim / MAX5 / data.z / WizPages.h < prev    next >
C/C++ Source or Header  |  1998-05-15  |  6KB  |  223 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. // NAME.......: WizPages.h                                               
  3. // PURPOSE....: wizard pages header file
  4. // WRITTEN....: 96/09/27 by Darko Juvan
  5. // DESCRIPTION: declaration    of wizard property pages
  6. //
  7. // This code and information is provided "as is" without warranty of any
  8. // kind, either expressed or implied, including but not limited to the
  9. // implied warranties of merchantability and/or fitness for a particular
  10. // purpose..
  11. //
  12. // Copyright (c) 1998  Multiactive Software Inc.  All Rights Reserved.
  13. //
  14. //////////////////////////////////////////////////////////////////////////////
  15.  
  16. #include "WizPropertySheet.h"
  17. #include "WizPropertyPage.h"
  18. #include "resource.h"
  19. #include "DTCtrl.h"
  20. #include "CalendarCtrl.h"
  21. #include "OwnComboBox.h"
  22.  
  23.  
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CPage1 dialog
  26. class CPage1 : public CWizPropertyPage
  27. {
  28.     DECLARE_DYNCREATE(CPage1)
  29.  
  30. // Construction
  31. public:
  32.     CPage1();
  33.     CPage1(CWizPropertySheet* pWizSheet); 
  34.     ~CPage1();
  35.  
  36.  
  37. //Atributes
  38.     CString m_text1;
  39.     CString m_text2;
  40.  
  41. // Dialog Data
  42.     //{{AFX_DATA(CPage1)
  43.     enum { IDD = IDD_PAGE1 };
  44.         // NOTE - ClassWizard will add data members here.
  45.         //    DO NOT EDIT what you see in these blocks of generated code !
  46.     //}}AFX_DATA
  47.  
  48.  
  49. // Overrides
  50.     // ClassWizard generate virtual function overrides
  51.     //{{AFX_VIRTUAL(CPage1)
  52.     public:
  53.     virtual BOOL OnSetActive();
  54.     virtual BOOL OnKillActive();
  55.     protected:
  56.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  57.     //}}AFX_VIRTUAL
  58.  
  59. // Implementation
  60. protected:
  61.     // Generated message map functions
  62.     //{{AFX_MSG(CPage1)
  63.     virtual BOOL OnInitDialog();
  64.     afx_msg void OnRadio1();
  65.     afx_msg void OnRadio2();
  66.     afx_msg void OnRadio3();
  67.     //}}AFX_MSG
  68.     DECLARE_MESSAGE_MAP()
  69.  
  70.  
  71.  
  72. };
  73. /////////////////////////////////////////////////////////////////////////////
  74. // CPage2 dialog
  75. class CPage2 : public CWizPropertyPage
  76. {
  77.     DECLARE_DYNCREATE(CPage2)
  78.  
  79. // Construction
  80. public:
  81.     int ConvertTime(int hour, int min, BOOL bPM);
  82.     CPage2();
  83.     CPage2(CWizPropertySheet* pWizSheet); 
  84.     ~CPage2();
  85.     void OnTimeChanged();
  86.  
  87. //    void Checktime();
  88.     CCalendarCtrl m_calendar;
  89.     int m_iYear; // year
  90.     int m_iMonth; // month
  91.     int m_iDay; // day
  92.  
  93.        CTime m_Time1;
  94.     CTime m_Time2;
  95.  
  96.     CDTCtrl     m_time1;
  97.     CDTCtrl     m_time2;
  98. //    int  m_iHour1; // hour
  99. //    int  m_iMinute1; // minute
  100. //    BOOL m_bPM1; // FALSE=AM, TRUE=PM
  101.  
  102. // Dialog Data
  103.     //{{AFX_DATA(CPage2)
  104.     enum { IDD = IDD_PAGE2 };
  105.         // NOTE - ClassWizard will add data members here.
  106.         //    DO NOT EDIT what you see in these blocks of generated code !
  107.     //}}AFX_DATA
  108.  
  109.  
  110. // Overrides
  111.     // ClassWizard generate virtual function overrides
  112.     //{{AFX_VIRTUAL(CPage2)
  113.     public:
  114.     virtual BOOL PreTranslateMessage(MSG* pMsg);
  115.     virtual BOOL OnSetActive();
  116.     virtual BOOL OnKillActive();
  117.     virtual LRESULT OnWizardNext();
  118.     protected:
  119.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  120.     virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
  121.     //}}AFX_VIRTUAL
  122.  
  123. // Implementation
  124. protected:
  125.     // Generated message map functions
  126.     //{{AFX_MSG(CPage2)
  127.     virtual BOOL OnInitDialog();
  128.     //}}AFX_MSG
  129.     LONG OnDateChanged(UINT wParam, LONG lParam);
  130.     DECLARE_MESSAGE_MAP()
  131.  
  132. };
  133. /////////////////////////////////////////////////////////////////////////////
  134. // CPage3 dialog
  135. class CPage3 : public CWizPropertyPage
  136. {
  137.     DECLARE_DYNCREATE(CPage3)
  138.  
  139. // Construction
  140. public:
  141.     LPCTSTR GetActivity(int sel);
  142.     CPage3();
  143.     CPage3(CWizPropertySheet* pWizSheet); 
  144.     ~CPage3();
  145. //Atributes
  146.     CBmpCombo m_combo;
  147. // Dialog Data
  148.     //{{AFX_DATA(CPage3)
  149.     enum { IDD = IDD_PAGE3 };
  150.         // NOTE - ClassWizard will add data members here.
  151.         //    DO NOT EDIT what you see in these blocks of generated code !
  152.     //}}AFX_DATA
  153.  
  154.  
  155. // Overrides
  156.     // ClassWizard generate virtual function overrides
  157.     //{{AFX_VIRTUAL(CPage3)
  158.     public:
  159.     virtual BOOL OnSetActive();
  160.     virtual LRESULT OnWizardNext();
  161.     protected:
  162.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  163.     //}}AFX_VIRTUAL
  164.  
  165. // Implementation
  166. protected:
  167.     // Generated message map functions
  168.     //{{AFX_MSG(CPage3)
  169.     virtual BOOL OnInitDialog();
  170.     virtual BOOL OnKillActive();
  171.     afx_msg void OnSelchangeComboActivity();
  172.     afx_msg void OnSelchangeComboPriority();
  173.     afx_msg void OnEditchangeComboAlarm();
  174.     afx_msg void OnSelchangeComboAlarm();
  175.     afx_msg void OnRadio1();
  176.     afx_msg void OnRadio2();
  177.     afx_msg void OnUpdateEditActivity();
  178.     //}}AFX_MSG
  179.     DECLARE_MESSAGE_MAP()
  180.  
  181.     void SetComboAlarm(CString str) ;
  182. };
  183. //////////////////////////////////////////////////////////////////////////
  184. // CPage4 dialog
  185. class CPage4 : public CWizPropertyPage
  186. {
  187.     DECLARE_DYNCREATE(CPage4)
  188.  
  189. // Construction
  190. public:
  191.     CPage4();
  192.     CPage4(CWizPropertySheet* pWizSheet); 
  193.     ~CPage4();
  194.  
  195. //Atributes
  196. // Dialog Data
  197.     //{{AFX_DATA(CPage4)
  198.     enum { IDD = IDD_PAGE4 };
  199.         // NOTE - ClassWizard will add data members here.
  200.         //    DO NOT EDIT what you see in these blocks of generated code !
  201.     //}}AFX_DATA
  202.  
  203.  
  204. // Overrides
  205.     // ClassWizard generate virtual function overrides
  206.     //{{AFX_VIRTUAL(CPage4)
  207.     public:
  208.     virtual BOOL OnSetActive();
  209.     virtual LRESULT OnWizardBack();
  210.     protected:
  211.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  212.     //}}AFX_VIRTUAL
  213.  
  214. // Implementation
  215. protected:
  216.     // Generated message map functions
  217.     //{{AFX_MSG(CPage4)
  218.     virtual BOOL OnInitDialog();
  219.     //}}AFX_MSG
  220.     DECLARE_MESSAGE_MAP()
  221.  
  222. };
  223.