From 229c0b6a3ba90e702ed6c971293b0600e29981ed Mon Sep 17 00:00:00 2001 From: kgv Date: Mon, 7 Oct 2013 14:12:37 +0400 Subject: [PATCH] 0024233: OpenGl_Window - compilation for Windows NT 4.0 target --- src/OpenGl/OpenGl_Window.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/OpenGl/OpenGl_Window.cxx b/src/OpenGl/OpenGl_Window.cxx index fa7f10a748..0a7f7f18c9 100644 --- a/src/OpenGl/OpenGl_Window.cxx +++ b/src/OpenGl/OpenGl_Window.cxx @@ -221,7 +221,11 @@ OpenGl_Window::OpenGl_Window (const Handle(OpenGl_Display)& theDisplay, } if (aClass.lpszClassName != NULL) { - aWinTmp = CreateWindowExW(WS_EX_TOOLWINDOW | WS_EX_WINDOWEDGE | WS_EX_NOACTIVATE, + DWORD anExStyle = WS_EX_TOOLWINDOW | WS_EX_WINDOWEDGE; + #if (_WIN32_WINNT >= 0x0500) + anExStyle |= WS_EX_NOACTIVATE; + #endif + aWinTmp = CreateWindowExW(anExStyle, aClass.lpszClassName, L"OpenGl_WindowTmp", WS_POPUP | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_DISABLED, 2, 2, 4, 4,