home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
wxos2240.zip
/
wxWindows-2.4.0
/
include
/
wx
/
os2
/
tooltip.h
< prev
next >
Wrap
C/C++ Source or Header
|
2002-07-10
|
1KB
|
42 lines
///////////////////////////////////////////////////////////////////////////////
// Name: msw/tooltip.h
// Purpose: wxToolTip class - tooltip control
// Author: David Webster
// Modified by:
// Created: 10/17/99
// RCS-ID: $Id: TOOLTIP.H,v 1.4 2002/07/09 22:02:07 DW Exp $
// Copyright: (c) David Webster
// Licence: wxWindows license
///////////////////////////////////////////////////////////////////////////////
class wxToolTip : public wxObject
{
public:
// ctor & dtor
wxToolTip(const wxString &rsTip);
virtual ~wxToolTip();
//
// Accessors
//
inline const wxString& GetTip(void) const { return m_sText; }
inline wxWindow* GetWindow(void) const { return m_pWindow; }
void SetTip(const wxString& rsTip);
inline void SetWindow(wxWindow* pWin) { m_pWindow = pWin; }
//
// Implementation
//
void DisplayToolTipWindow(const wxPoint& rPos);
void HideToolTipWindow(void);
private:
void Create(const wxString &rsTip);
HWND m_hWnd;
wxString m_sText; // tooltip text
wxWindow* m_pWindow; // window we're associated with
}; // end of CLASS wxToolTip