Fix finding widgets for Windows Embedded Compact
authorAndreas Holzammer <andreas.holzammer@kdab.com>
Tue, 20 Jan 2015 11:40:50 +0000 (12:40 +0100)
committerJani Heikkinen <jani.heikkinen@theqtcompany.com>
Thu, 22 Jan 2015 07:31:37 +0000 (08:31 +0100)
ChildWindowFromPoint does not work properly under
wince, so lets use the plain old WindowFromPoint.

Task-number: QTBUG-44022
Change-Id: I49bae6409f2d11ddc01bea01f4c2f91a02b90892
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
src/plugins/platforms/windows/qwindowscontext.cpp

index 13a3d044a057270018466e7fb97163c1d2f60705..ffa7f82d8e2025498745be25ec1aaba216441bd0 100644 (file)
@@ -676,7 +676,7 @@ static inline bool findPlatformWindowHelper(const POINT &screenPoint, unsigned c
     const HWND child = ChildWindowFromPointEx(*hwnd, point, cwexFlags);
 #else
     Q_UNUSED(cwexFlags)
-    const HWND child = ChildWindowFromPoint(*hwnd, point);
+    const HWND child = WindowFromPoint(point);
 #endif
     if (!child || child == *hwnd)
         return false;