git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1623
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxDropTarget *GetDropTarget() const { return m_pDropTarget; }
#endif
wxDropTarget *GetDropTarget() const { return m_pDropTarget; }
#endif
// tooltips
// create a tooltip with this text
void SetToolTip(const wxString &tip);
// tooltips
// create a tooltip with this text
void SetToolTip(const wxString &tip);
void SetToolTip(wxToolTip *tooltip);
// get the current tooltip (may return NULL if none)
wxToolTip* GetToolTip() const { return m_tooltip; }
void SetToolTip(wxToolTip *tooltip);
// get the current tooltip (may return NULL if none)
wxToolTip* GetToolTip() const { return m_tooltip; }
+#endif // wxUSE_TOOLTIPS
// Accept files for dragging
virtual void DragAcceptFiles(bool accept);
// Accept files for dragging
virtual void DragAcceptFiles(bool accept);
void Init();
// the associated tooltip (may be NULL if none)
void Init();
// the associated tooltip (may be NULL if none)
#include "wx/wx.h"
#endif
#include "wx/wx.h"
#endif
#include "wx/tooltip.h"
#include "wx/msw/private.h"
#include "wx/tooltip.h"
#include "wx/msw/private.h"
(void)SendTooltipMessage(GetToolTipCtrl(), TTM_UPDATETIPTEXT, 0, &ti);
}
}
(void)SendTooltipMessage(GetToolTipCtrl(), TTM_UPDATETIPTEXT, 0, &ti);
}
}
+
+#endif // wxUSE_TOOLTIPS
WXLPARAM* WXUNUSED(result))
{
#ifdef __WIN95__
WXLPARAM* WXUNUSED(result))
{
#ifdef __WIN95__
NMHDR* hdr = (NMHDR *)lParam;
if ( hdr->code == TTN_NEEDTEXT && m_tooltip )
{
NMHDR* hdr = (NMHDR *)lParam;
if ( hdr->code == TTN_NEEDTEXT && m_tooltip )
{
// processed
return TRUE;
}
// processed
return TRUE;
}
m_pDropTarget = NULL;
#endif
m_pDropTarget = NULL;
#endif
// first of all, delete the things on which nothing else depends
// first of all, delete the things on which nothing else depends
// JACS - if behaviour is odd, restore this
// to the start of ~wxWindow. Vadim has changed
// JACS - if behaviour is odd, restore this
// to the start of ~wxWindow. Vadim has changed
// tooltips
// ----------------------------------------------------------------------------
// tooltips
// ----------------------------------------------------------------------------
void wxWindow::SetToolTip(const wxString &tip)
{
SetToolTip(new wxToolTip(tip));
void wxWindow::SetToolTip(const wxString &tip)
{
SetToolTip(new wxToolTip(tip));
m_tooltip->SetWindow(this);
}
m_tooltip->SetWindow(this);
}
+#endif // wxUSE_TOOLTIPS
+
// Get total size
void wxWindow::GetSize(int *x, int *y) const
{
// Get total size
void wxWindow::GetSize(int *x, int *y) const
{