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 >
C/C++ Source or Header  |  2002-07-10  |  1KB  |  42 lines

  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name:        msw/tooltip.h
  3. // Purpose:     wxToolTip class - tooltip control
  4. // Author:      David Webster
  5. // Modified by:
  6. // Created:     10/17/99
  7. // RCS-ID:      $Id: TOOLTIP.H,v 1.4 2002/07/09 22:02:07 DW Exp $
  8. // Copyright:   (c) David Webster
  9. // Licence:     wxWindows license
  10. ///////////////////////////////////////////////////////////////////////////////
  11.  
  12. class wxToolTip : public wxObject
  13. {
  14. public:
  15.     // ctor & dtor
  16.     wxToolTip(const wxString &rsTip);
  17.     virtual ~wxToolTip();
  18.  
  19.     //
  20.     // Accessors
  21.     //
  22.     inline const wxString& GetTip(void) const { return m_sText; }
  23.     inline wxWindow*       GetWindow(void) const { return m_pWindow; }
  24.  
  25.            void            SetTip(const wxString& rsTip);
  26.     inline void            SetWindow(wxWindow* pWin) { m_pWindow = pWin; }
  27.  
  28.     //
  29.     // Implementation
  30.     //
  31.     void DisplayToolTipWindow(const wxPoint& rPos);
  32.     void HideToolTipWindow(void);
  33.  
  34. private:
  35.     void Create(const wxString &rsTip);
  36.  
  37.     HWND                            m_hWnd;
  38.     wxString                        m_sText;           // tooltip text
  39.     wxWindow*                       m_pWindow;         // window we're associated with
  40. }; // end of CLASS wxToolTip
  41.  
  42.