// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
-
#ifdef __GNUG__
-#pragma implementation
+#pragma implementation "htmlcell.h"
#endif
-#include <wx/wxprec.h>
+#include "wx/wxprec.h"
-#include "wx/defs.h"
#if wxUSE_HTML
#ifdef __BORDLANDC__
#endif
#ifndef WXPRECOMP
-#include <wx/wx.h>
+#include "wx/wx.h"
#endif
-#include <wx/html/htmlcell.h>
-#include <wx/html/htmlwin.h>
+#include "wx/html/htmlcell.h"
+#include "wx/html/htmlwin.h"
#include <stdlib.h>
-
-
//-----------------------------------------------------------------------------
// wxHtmlCell
//-----------------------------------------------------------------------------
void wxHtmlCell::OnMouseClick(wxWindow *parent, int x, int y, bool left, bool middle, bool right)
{
- if (GetLink() != wxEmptyString)
- ((wxHtmlWindow*)parent) -> OnLinkClicked(GetLink());
+ wxString lnk = GetLink(x, y);
+ if (lnk != wxEmptyString)
+ ((wxHtmlWindow*)parent) -> OnLinkClicked(lnk);
// note : this overcasting is legal because parent is *always* wxHtmlWindow
}
-
-
-
-
//-----------------------------------------------------------------------------
// wxHtmlContainerCell
//-----------------------------------------------------------------------------