imagemap support (html)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
1999-07-21 11:06:27 +00:00
parent 483ff5a5af
commit 2508212677
6 changed files with 385 additions and 48 deletions

View File

@@ -38,8 +38,9 @@
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
}