build fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2006-10-02 05:31:21 +00:00
parent 008b5a66f7
commit 50dd4ca957
2 changed files with 2 additions and 2 deletions

View File

@@ -468,7 +468,7 @@ DragShape::DragShape(const wxBitmap& bitmap)
bool DragShape::HitTest(const wxPoint& pt) const bool DragShape::HitTest(const wxPoint& pt) const
{ {
wxRect rect(GetRect()); wxRect rect(GetRect());
return rect.Inside(pt.x, pt.y); return rect.Contains(pt.x, pt.y);
} }
bool DragShape::Draw(wxDC& dc, int op) bool DragShape::Draw(wxDC& dc, int op)

View File

@@ -200,7 +200,7 @@ void SimpleTransientPopup::OnMouse(wxMouseEvent &event)
rect.SetWidth(1000000); rect.SetWidth(1000000);
wxColour colour(*wxLIGHT_GREY); wxColour colour(*wxLIGHT_GREY);
if (rect.Inside(event.GetPosition())) if (rect.Contains(event.GetPosition()))
{ {
colour = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT); colour = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT);
wxLogMessage( wxT("0x%lx SimpleTransientPopup::OnMouse pos(%d, %d)"), long(event.GetEventObject()), event.GetX(), event.GetY()); wxLogMessage( wxT("0x%lx SimpleTransientPopup::OnMouse pos(%d, %d)"), long(event.GetEventObject()), event.GetX(), event.GetY());