]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/tooltip.h
It was not acceptable to call the class method from the static initializer
[wxWidgets.git] / include / wx / os2 / tooltip.h
CommitLineData
0e320a79
DW
1///////////////////////////////////////////////////////////////////////////////
2// Name: msw/tooltip.h
3// Purpose: wxToolTip class - tooltip control
d90895ac 4// Author: David Webster
0e320a79 5// Modified by:
d90895ac 6// Created: 10/17/99
0e320a79 7// RCS-ID: $Id$
d90895ac 8// Copyright: (c) David Webster
371a5b4e 9// Licence: wxWindows licence
0e320a79
DW
10///////////////////////////////////////////////////////////////////////////////
11
12class wxToolTip : public wxObject
13{
14public:
15 // ctor & dtor
05facebb 16 wxToolTip(const wxString &rsTip);
0e320a79
DW
17 virtual ~wxToolTip();
18
05facebb
DW
19 //
20 // Accessors
21 //
22 inline const wxString& GetTip(void) const { return m_sText; }
23 inline wxWindow* GetWindow(void) const { return m_pWindow; }
0e320a79 24
05facebb
DW
25 void SetTip(const wxString& rsTip);
26 inline void SetWindow(wxWindow* pWin) { m_pWindow = pWin; }
0e320a79 27
05facebb
DW
28 //
29 // Implementation
30 //
31 void DisplayToolTipWindow(const wxPoint& rPos);
32 void HideToolTipWindow(void);
0e320a79
DW
33
34private:
05facebb 35 void Create(const wxString &rsTip);
0e320a79 36
05facebb
DW
37 HWND m_hWnd;
38 wxString m_sText; // tooltip text
39 wxWindow* m_pWindow; // window we're associated with
40}; // end of CLASS wxToolTip
0e320a79 41