26#include <wx/nonownedwnd.h>
28#include <wx/msw/registry.h>
33#if wxCHECK_VERSION( 3, 3, 0 )
34 wxSystemAppearance appearance = wxSystemSettings::GetAppearance();
35 return appearance.IsDark();
37 wxColour bg = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW );
40 double brightness = ( bg.Red() / 255.0 ) * 0.299 +
41 ( bg.Green() / 255.0 ) * 0.587 +
42 ( bg.Blue() / 255.0 ) * 0.117;
44 return brightness < 0.5;
51 return wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE );
57 aBGColour = wxSystemSettings::GetColour( wxSYS_COLOUR_INFOBK );
58 aFGColour = wxSystemSettings::GetColour( wxSYS_COLOUR_INFOTEXT );
75 return ( aWindow->GetHWND() == GetForegroundWindow() );
101 case wxCURSOR_BULLSEYE:
125 return aWindow->GetContentScaleFactor();
131 return aWindow->GetDPIScaleFactor();
137 return aWindow->GetClientSize();
155 return wxGetMousePosition();
161 aWindow->WarpPointer( aX, aY );
170 ImmAssociateContext( aWindow->GetHWND(), NULL );
174 ImmAssociateContextEx( aWindow->GetHWND(), 0, IACE_DEFAULT );
181 const HIMC himc = ImmGetContext( aWindow->GetHWND() );
182 ImmNotifyIME( himc, NI_COMPOSITIONSTR, CPS_CANCEL, 0 );
183 ImmReleaseContext( aWindow->GetHWND(), himc );
std::shared_ptr< PNS_LOG_VIEWER_OVERLAY > overlay