7#if !defined(__wxEXTEND_common_h__)
8#define __wxEXTEND_common_h__
16#define wxEXTEND_VERSION 0x01050300
18#define wxEXTEND_VERSION_MAJ 1
19#define wxEXTEND_VERSION_MIN 5
20#define wxEXTEND_VERSION_REV 3
21#define wxEXTEND_VERSION_BUILD 0
23#define wxEXTEND_VERSION_STR "1.5.3"
24#define wxEXTEND_BUILD_YEAR_STR "2022"
26#define wxExtendVersion "15"
29#if !defined(RC_INVOKED) && !defined(MIDL_PASS)
34#include <codeanalysis\warnings.h>
35#ifndef WXWIDGETS_CODE_ANALYSIS_WARNINGS
36#define WXWIDGETS_CODE_ANALYSIS_WARNINGS ALL_CODE_ANALYSIS_WARNINGS 26812 26814
40#pragma warning(disable: WXWIDGETS_CODE_ANALYSIS_WARNINGS)
51#if defined(WXMAKINGDLL_WXEXTEND)
52#define WXEXTEND_API __declspec(dllexport)
53#elif defined(WXUSINGDLL)
54#define WXEXTEND_API __declspec(dllimport)
65#define wxVERIFY_MSG(cond, msg) \
66 wxSTATEMENT_MACRO_BEGIN \
67 if ( !(cond) && wxTheAssertHandler && \
68 (wxOnAssert(__FILE__, __LINE__, __WXFUNCTION__, \
69 #cond, msg), wxTrapInAssert) ) \
71 wxTrapInAssert = false; \
82#define wxVERIFY(cond) wxVERIFY_MSG(cond, (const char*)NULL)
84#define wxVERIFY(cond) (cond)
97 ANIMATIONINFO ai = {
sizeof(ai) };
98 wxCHECK(SystemParametersInfo(SPI_GETANIMATION,
sizeof(ai), &ai, 0),
false);
99 return ai.iMinAnimate ? true :
false;
115inline bool wxModifyStyleEx(_In_ WXHWND hWnd, _In_ DWORD dwRemove, _In_ DWORD dwAdd, _In_ UINT nFlags = 0)
117 wxASSERT(IsWindow(hWnd));
119 const DWORD dwStyle = GetWindowLong(hWnd, GWL_EXSTYLE);
120 const DWORD dwNewStyle = (dwStyle & ~dwRemove) | dwAdd;
121 if(dwStyle == dwNewStyle)
124 SetWindowLong(hWnd, GWL_EXSTYLE, dwNewStyle);
126 SetWindowPos(hWnd, NULL, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE | nFlags);
145#pragma warning(suppress: 26812)
149 wxLanguage lang_code = wxLANGUAGE_DEFAULT;
151 if (wxConfigBase::Get()->Read(wxT(
"Language"), &lang)) {
152 const wxLanguageInfo *lang_info = wxLocale::FindLanguageInfo(lang);
153 lang_code = lang_info ? (wxLanguage)lang_info->Language : wxLANGUAGE_DEFAULT;
157 *language = lang_code;
159 if (wxLocale::IsAvailable(lang_code)) {
162 if (wxConfigBase::Get()->Read(wxT(
"LocalizationRepositoryPath"), &sPath))
163 locale.AddCatalogLookupPathPrefix(sPath);
164 return locale.Init(lang_code);
bool wxGetDoWndAnimation()
Returns whether windows animation is enabled.
Definition: common.h:95
bool wxModifyStyleEx(WXHWND hWnd, DWORD dwRemove, DWORD dwAdd, UINT nFlags=0)
Modifies window extended style.
Definition: common.h:115
bool wxInitializeLocale(wxLocale &locale, wxLanguage *language=NULL)
Inizializes wxWidgets localization scheme.
Definition: common.h:146