/** * @file XTPWebView2.h * * @copyright * (c) 1998-2025 Codejock Software, All Rights Reserved. * * This source file is the property of Codejock Software and must not be * redistributed by any means without the explicit written permission of * Codejock Software. * * The use of this source code is governed by the terms and conditions specified * in the Toolkit Pro license agreement. Codejock Software grants you, as a * single software developer, the limited right to use this software on one * computer only. * * Contact Information: * support@codejock.com * http://www.codejock.com * */ /** @cond */ #if !defined(__XTPWEBVIEW2_H__) # define __XTPWEBVIEW2_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER > 1000 # include "rpc.h" # include "rpcndr.h" # include "objidl.h" # include "oaidl.h" /** * Defines the minimum supported _MSC_VER value that corresponds to Visual Studio 2015 for WebView2 * web browser provider to be enabled. */ # define XTP_BROWSER_WEBVIEW_MIN_VC_VERSION 1900 # if _MSC_VER >= XTP_BROWSER_WEBVIEW_MIN_VC_VERSION // Indicates that WebView2 web browser provider is supported by the current compiler. # define XTP_BROWSER_WEBVIEW_SUPPORTED # endif /** @cond */ # ifdef DEFINE_ENUM_FLAG_OPERATORS # define XTP_DEFINE_ENUM_FLAG_OPERATORS_DISABLED # pragma push_macro("DEFINE_ENUM_FLAG_OPERATORS") # undef DEFINE_ENUM_FLAG_OPERATORS # endif # define DEFINE_ENUM_FLAG_OPERATORS(unused) # include "Controls/WebBrowser/Providers/WebView2/WebView2.h" # undef DEFINE_ENUM_FLAG_OPERATORS # ifdef XTP_DEFINE_ENUM_FLAG_OPERATORS_DISABLED # pragma pop_macro("DEFINE_ENUM_FLAG_OPERATORS") # undef XTP_DEFINE_ENUM_FLAG_OPERATORS_DISABLED # endif #endif /** @endcond */