50 lines
1.0 KiB
C++
50 lines
1.0 KiB
C++
// CG: This file added by 'Tip of the Day' component.
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CTipDlg dialog
|
|
|
|
class CTipDlg : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
CTipDlg(CWnd* pParent = NULL); // standard constructor
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CTipDlg)
|
|
// enum { IDD = IDD_TIP };
|
|
BOOL m_bStartup;
|
|
CString m_strTip;
|
|
//}}AFX_DATA
|
|
|
|
FILE* m_pStream;
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CTipDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
public:
|
|
virtual ~CTipDlg();
|
|
virtual INT_PTR DoModal () ;
|
|
|
|
protected:
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CTipDlg)
|
|
afx_msg void OnNextTip();
|
|
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
|
|
virtual void OnOK();
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnPaint();
|
|
//}}AFX_MSG
|
|
|
|
void DoPaint (CDC *pdc, BOOL updatetext) ;
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
void GetNextTipString(CString& strNext);
|
|
};
|
|
|