diff options
Diffstat (limited to 'views/screen_win.cc')
-rw-r--r-- | views/screen_win.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/views/screen_win.cc b/views/screen_win.cc index 82e95e6..4ddb7c1 100644 --- a/views/screen_win.cc +++ b/views/screen_win.cc @@ -46,5 +46,10 @@ gfx::Rect Screen::GetMonitorAreaNearestPoint(const gfx::Point& point) { return gfx::Rect(mi.rcMonitor); } +gfx::NativeWindow Screen::GetWindowAtCursorScreenPoint() { + POINT location; + return GetCursorPos(&location) ? WindowFromPoint(location) : NULL; +} + } // namespace |