27#include <wx/display.h>
28#include <wx/nonownedwnd.h>
30#include <wx/msw/registry.h>
35#if wxCHECK_VERSION( 3, 3, 0 )
36 wxSystemAppearance appearance = wxSystemSettings::GetAppearance();
37 return appearance.IsDark();
39 wxColour bg = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW );
42 double brightness = ( bg.Red() / 255.0 ) * 0.299 +
43 ( bg.Green() / 255.0 ) * 0.587 +
44 ( bg.Blue() / 255.0 ) * 0.117;
46 return brightness < 0.5;
53 return wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE );
59 aBGColour = wxSystemSettings::GetColour( wxSYS_COLOUR_INFOBK );
60 aFGColour = wxSystemSettings::GetColour( wxSYS_COLOUR_INFOTEXT );
83 return ( aWindow->GetHWND() == GetForegroundWindow() );
121 case wxCURSOR_BULLSEYE:
145 return aWindow->GetContentScaleFactor();
151 return aWindow->GetDPIScaleFactor();
158 return wxDisplay( aWindow ).GetCurrentMode().refresh;
164 return aWindow->GetClientSize();
188 return wxGetMousePosition();
194 aWindow->WarpPointer( aX, aY );
203 ImmAssociateContext( aWindow->GetHWND(), NULL );
207 ImmAssociateContextEx( aWindow->GetHWND(), 0, IACE_DEFAULT );
214 const HIMC himc = ImmGetContext( aWindow->GetHWND() );
215 ImmNotifyIME( himc, NI_COMPOSITIONSTR, CPS_CANCEL, 0 );
216 ImmReleaseContext( aWindow->GetHWND(), himc );
268 *aDisplayType = NATIVE_DISPLAY_TYPE::DISPLAY_WIN32;
271 *aHandle =
static_cast<void*
>( aWindow->GetHWND() );
std::shared_ptr< PNS_LOG_VIEWER_OVERLAY > overlay