+int wxDisplayBase::GetFromWindow(wxWindow *window)
+{
+ wxCHECK_MSG( window, wxNOT_FOUND, _T("NULL window") );
+
+ // consider that the window belong to the display containing its centre
+ const wxRect r(window->GetRect());
+ return GetFromPoint(wxPoint(r.x + r.width/2, r.y + r.height/2));
+}
+
+#endif // !__WXMSW__
+
+#endif // wxUSE_DISPLAY