27#include <wx/nonownedwnd.h>
29#include <wx/msw/registry.h>
34#if wxCHECK_VERSION( 3, 3, 0 )
35 wxSystemAppearance appearance = wxSystemSettings::GetAppearance();
36 return appearance.IsDark();
38 wxColour bg = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW );
41 double brightness = ( bg.Red() / 255.0 ) * 0.299 +
42 ( bg.Green() / 255.0 ) * 0.587 +
43 ( bg.Blue() / 255.0 ) * 0.117;
45 return brightness < 0.5;
52 return wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE );
58 aBGColour = wxSystemSettings::GetColour( wxSYS_COLOUR_INFOBK );
59 aFGColour = wxSystemSettings::GetColour( wxSYS_COLOUR_INFOTEXT );
76 return ( aWindow->GetHWND() == GetForegroundWindow() );
108 case wxCURSOR_BULLSEYE:
132 return aWindow->GetContentScaleFactor();
138 return aWindow->GetDPIScaleFactor();
144 return aWindow->GetClientSize();
162 return wxGetMousePosition();
168 aWindow->WarpPointer( aX, aY );
177 ImmAssociateContext( aWindow->GetHWND(), NULL );
181 ImmAssociateContextEx( aWindow->GetHWND(), 0, IACE_DEFAULT );
188 const HIMC himc = ImmGetContext( aWindow->GetHWND() );
189 ImmNotifyIME( himc, NI_COMPOSITIONSTR, CPS_CANCEL, 0 );
190 ImmReleaseContext( aWindow->GetHWND(), himc );
std::shared_ptr< PNS_LOG_VIEWER_OVERLAY > overlay