diff options
author | Matt Turner <mattst88@gmail.com> | 2006-08-04 01:04:15 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2006-08-04 01:04:15 +0000 |
commit | dfa4a46bb0e6c6df9d07039fda5ef7f4309915b2 (patch) | |
tree | ac8b4cc67ff64703b4298f077e87bb4eb4334410 /widgettooltip.h | |
parent | 3582a80243bdd92619e737111ada5b5bf2667cd7 (diff) |
git-svn-id: svn://mattst88.com/svn/skygipp/trunk@2 a71248a0-261a-0410-b604-901f7c0bd773
Diffstat (limited to 'widgettooltip.h')
-rw-r--r-- | widgettooltip.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/widgettooltip.h b/widgettooltip.h new file mode 100644 index 0000000..e21765f --- /dev/null +++ b/widgettooltip.h @@ -0,0 +1,53 @@ +#ifndef WIDGETTOOLTIP_H +#define WIDGETTOOLTIP_H + +#include <skygi/skygi.h> + +#include "widget.h" + +//! A Tooltip class + +class CTooltip { + public: + /*! Constructor */ + CTooltip(); + + /*! + Create Tooltip + + \param parent HANDLE of the parent window on which to draw + \param owner Parent window of the tooltip when created (default: NULL) + \param text Text to be displayed + \param popuptime Popup time in milliseconds + + \return Success: S_OK\n + Failure: E_HANDLE + */ + HRESULT Create(HANDLE parent, HANDLE owner, char * text, unsigned int popuptime); + + /*! + Enable Tooltip + */ + HRESULT Enable(); + + /*! + Disable Tooltip + */ + HRESULT Disable(); + + HRESULT SetText(char * text); + + char * GetText(); + + HRESULT SetPopupTime(unsigned int popuptime); + + unsigned int GetPopupTime(); + + protected: + HANDLE hWnd; + char Text[64]; + unsigned int PopupTime; +}; + +#endif + |