diff --git a/modules/highgui/src/window_w32.cpp b/modules/highgui/src/window_w32.cpp index 66e684657..0878bff60 100644 --- a/modules/highgui/src/window_w32.cpp +++ b/modules/highgui/src/window_w32.cpp @@ -48,6 +48,11 @@ # pragma GCC diagnostic ignored "-Wmissing-declarations" #endif +#if (_WIN32_IE < 0x0500) +#pragma message("WARNING: Win32 UI needs to be compiled with _WIN32_IE >= 0x0500 (_WIN32_IE_IE50)") +#define _WIN32_IE 0x0500 +#endif + #include #include #include