X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7212d15556e87f73ff5ea8c3211a0e8e8811426b..538a0c0de22cb3ae125038e69b4de095f081147b:/src/msw/display.cpp diff --git a/src/msw/display.cpp b/src/msw/display.cpp index 3e87a50557..37c98d45a7 100644 --- a/src/msw/display.cpp +++ b/src/msw/display.cpp @@ -39,6 +39,7 @@ #include "wx/sysopt.h" #include "wx/display_impl.h" +#include "wx/msw/wrapwin.h" #include "wx/msw/missing.h" // define this to use DirectDraw for display mode switching: this is disabled @@ -222,7 +223,7 @@ public: virtual unsigned GetCount() { return unsigned(m_displays.size()); } virtual int GetFromPoint(const wxPoint& pt); - virtual int GetFromWindow(wxWindow *window); + virtual int GetFromWindow(const wxWindow *window); protected: // ctor checks if the current system supports multimon API and dynamically @@ -572,7 +573,7 @@ int wxDisplayFactoryWin32Base::GetFromPoint(const wxPoint& pt) MONITOR_DEFAULTTONULL)); } -int wxDisplayFactoryWin32Base::GetFromWindow(wxWindow *window) +int wxDisplayFactoryWin32Base::GetFromWindow(const wxWindow *window) { return FindDisplayFromHMONITOR(gs_MonitorFromWindow(GetHwndOf(window), MONITOR_DEFAULTTONULL));