added mouse event member into wxHtmlLinkInfo. wxHtmlWindow::OnLinkClicked now takes const wxHtmlLinkInfo& argument

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2000-01-11 23:30:43 +00:00
parent 1be096c9f9
commit 0b2dadd342
4 changed files with 16 additions and 14 deletions

View File

@@ -418,9 +418,9 @@ void wxHtmlWindow::AddFilter(wxHtmlFilter *filter)
void wxHtmlWindow::OnLinkClicked(wxHtmlLinkInfo *link)
void wxHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link)
{
LoadPage(link -> GetHref());
LoadPage(link.GetHref());
}
@@ -506,7 +506,7 @@ void wxHtmlWindow::OnMouseEvent(wxMouseEvent& event)
pos = event.GetPosition();
if (m_Cell)
m_Cell -> OnMouseClick(this, sx + pos.x, sy + pos.y, event.ButtonDown(1), event.ButtonDown(2), event.ButtonDown(3));
m_Cell -> OnMouseClick(this, sx + pos.x, sy + pos.y, event);
}
}