home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / TIPS.ZIP / prj / ToolTips / ToolTipDialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-22  |  1.3 KB  |  54 lines

  1. //==========================================================================
  2. // File : ToolTipDialog.h
  3. //
  4. // Definition of class CToolTipDialog
  5. //
  6. // Author : H. Devos
  7. //
  8. // Created : 14/10/98
  9. //
  10. //                                         (C) n.v. dZine
  11. //==========================================================================
  12.  
  13. #ifndef _TOOLTIPDIALOG_H_IS_INCLUDED
  14. #define _TOOLTIPDIALOG_H_IS_INCLUDED
  15.  
  16. #ifndef __AFXWIN_H__
  17. #include <AfxWin.h>
  18. #endif
  19.  
  20. #ifndef __AFXCMN_H__
  21. #include <AfxCmn.h>
  22. #endif
  23.  
  24. /***************************************************************************
  25. * Class CToolTipDialog
  26. *
  27. * Derived from : CDialog
  28. *
  29. * Description : A generic dialog that displays tooltips
  30. *                Derive your class from CToolTipDialog instead of CDialog
  31. *
  32. */
  33. class CToolTipDialog : public CDialog
  34. {
  35.     DECLARE_DYNAMIC(CToolTipDialog)
  36.     DECLARE_MESSAGE_MAP()
  37. public:
  38.     CToolTipDialog();
  39.     CToolTipDialog(LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL);
  40.     CToolTipDialog(UINT nIDTemplate, CWnd* pParentWnd = NULL);
  41.     virtual ~CToolTipDialog();
  42.     static void EnableToolTips(BOOL bEnable);
  43. protected:
  44.     afx_msg void OnDestroy();
  45.     virtual BOOL OnInitDialog();
  46.     virtual BOOL PreTranslateMessage(MSG *pMsg);
  47.     CToolTipCtrl m_wndToolTip;
  48.     static BOOL c_bShowToolTips;
  49. private:
  50. };
  51.  
  52. #else
  53. #error file ToolTipDialog.h included more than once.
  54. #endif