diff --git a/src/plugins/platforms/windows/qplatformfunctions_wince.h b/src/plugins/platforms/windows/qplatformfunctions_wince.h index dc3d80920b..a6b3889cf7 100644 --- a/src/plugins/platforms/windows/qplatformfunctions_wince.h +++ b/src/plugins/platforms/windows/qplatformfunctions_wince.h @@ -295,6 +295,15 @@ inline DWORD GetGlyphOutline( HDC /*hdc*/, UINT /*uChar*/, INT /*fuFormat*/, GLY return GDI_ERROR; } +inline HWND GetAncestor(HWND hWnd, UINT /*gaFlags*/) +{ + return GetParent(hWnd); +} + +#ifndef GA_PARENT +# define GA_PARENT 1 +#endif + #ifndef SPI_SETFONTSMOOTHINGTYPE # define SPI_SETFONTSMOOTHINGTYPE 0x200B #endif