Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
1.7 KiB

  1. // TipDlg.h : header file
  2. //
  3. //{{AFX_INCLUDES()
  4. #include "webbrows.h"
  5. //}}AFX_INCLUDES
  6. //-----------------------------------------------------------------------------
  7. class CTipText : public CButton
  8. {
  9. // Construction
  10. public:
  11. // Attributes
  12. public:
  13. // Operations
  14. public:
  15. virtual void DrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct );
  16. // Implementation
  17. public:
  18. // Generated message map functions
  19. protected:
  20. DECLARE_MESSAGE_MAP()
  21. };
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CTipDlg dialog
  24. class CTipDlg : public CDialog
  25. {
  26. // Construction
  27. public:
  28. CTipDlg(CWnd* pParent = NULL); // standard constructor
  29. virtual BOOL OnInitDialog();
  30. BOOL FShowAtStartup();
  31. // Dialog Data
  32. //{{AFX_DATA(CTipDlg)
  33. enum { IDD = IDD_TIP };
  34. CButton m_cbtn_back;
  35. CButton m_cbtn_next;
  36. BOOL m_bool_showtips;
  37. CWebBrowser m_ie;
  38. //}}AFX_DATA
  39. // Overrides
  40. // ClassWizard generated virtual function overrides
  41. //{{AFX_VIRTUAL(CTipDlg)
  42. protected:
  43. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  44. //}}AFX_VIRTUAL
  45. // Implementation
  46. protected:
  47. // Generated message map functions
  48. //{{AFX_MSG(CTipDlg)
  49. afx_msg void OnBack();
  50. afx_msg void OnNext();
  51. afx_msg void OnClose();
  52. virtual void OnOK();
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. // record the show tips value
  56. void SaveShowTips();
  57. // get the path to the tips file
  58. void GetTipPath( CString &sz );
  59. // load a tip
  60. void LoadTip( int iTip );
  61. // data pertaining to the tips
  62. int nNumTips;
  63. int iCurTip;
  64. // starting tip
  65. int m_iStartTip;
  66. // the string that get pre-pended to the time file paths
  67. // in the tips.dat file
  68. CString szFileStarter;
  69. };