Leaked source code of windows server 2003
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.

54 lines
1.4 KiB

  1. /******************************************************************************
  2. Header File: Tip of the Day.H
  3. This defines the Tip of the Day dialog class. It was originally created by
  4. the Component Gallery, but I expect I will et around to tweaking it here and
  5. there pretty soon.
  6. Copyright (c) 1997 by Microsoft Corporation. All rights reserved.
  7. A Pretty Penny Enterprises Production
  8. Change History:
  9. 03-02-1997 Bob_Kjelgaard@Prodigy.Net Created it
  10. ******************************************************************************/
  11. class CTipOfTheDay : public CDialog {
  12. // Construction
  13. public:
  14. CTipOfTheDay(CWnd* pParent = NULL); // standard constructor
  15. // Dialog Data
  16. //{{AFX_DATA(CTipOfTheDay)
  17. // enum { IDD = IDD_TIP };
  18. BOOL m_bStartup;
  19. CString m_strTip;
  20. //}}AFX_DATA
  21. FILE* m_pStream;
  22. // Overrides
  23. // ClassWizard generated virtual function overrides
  24. //{{AFX_VIRTUAL(CTipOfTheDay)
  25. protected:
  26. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  27. //}}AFX_VIRTUAL
  28. // Implementation
  29. public:
  30. virtual ~CTipOfTheDay();
  31. protected:
  32. // Generated message map functions
  33. //{{AFX_MSG(CTipOfTheDay)
  34. afx_msg void OnNextTip();
  35. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  36. virtual void OnOK();
  37. virtual BOOL OnInitDialog();
  38. afx_msg void OnPaint();
  39. //}}AFX_MSG
  40. DECLARE_MESSAGE_MAP()
  41. void GetNextTipString(CString& strNext);
  42. };