diff --git a/include/wx/msw/popupwin.h b/include/wx/msw/popupwin.h index d95c1dabc0..e8effc0125 100644 --- a/include/wx/msw/popupwin.h +++ b/include/wx/msw/popupwin.h @@ -35,9 +35,6 @@ public: virtual WXHWND MSWGetParent() const; protected: - // popups handle the position like wxTopLevelWindow, not wxWindow - virtual void DoGetPosition(int *x, int *y) const; - DECLARE_DYNAMIC_CLASS_NO_COPY(wxPopupWindow) }; diff --git a/src/msw/popupwin.cpp b/src/msw/popupwin.cpp index fbcf9961e6..7fc2510827 100644 --- a/src/msw/popupwin.cpp +++ b/src/msw/popupwin.cpp @@ -47,16 +47,6 @@ bool wxPopupWindow::Create(wxWindow *parent, int flags) flags | wxPOPUP_WINDOW); } -void wxPopupWindow::DoGetPosition(int *x, int *y) const -{ - // the position of a "top level" window such as this should be in - // screen coordinates, not in the client ones which MSW gives us - // (because we are a child window) - wxPopupWindowBase::DoGetPosition(x, y); - - GetParent()->ClientToScreen(x, y); -} - WXDWORD wxPopupWindow::MSWGetStyle(long flags, WXDWORD *exstyle) const { // we only honour the border flags, the others don't make sense for us