26#include <wx/dataview.h>
28#include <wx/display.h>
29#include <wx/nonownedwnd.h>
31#include <wx/msw/registry.h>
36#if wxCHECK_VERSION( 3, 3, 0 )
37 wxSystemAppearance appearance = wxSystemSettings::GetAppearance();
38 return appearance.IsDark();
40 wxColour bg = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW );
43 double brightness = ( bg.Red() / 255.0 ) * 0.299 +
44 ( bg.Green() / 255.0 ) * 0.587 +
45 ( bg.Blue() / 255.0 ) * 0.117;
47 return brightness < 0.5;
54 return wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE );
60 aBGColour = wxSystemSettings::GetColour( wxSYS_COLOUR_INFOBK );
61 aFGColour = wxSystemSettings::GetColour( wxSYS_COLOUR_INFOTEXT );
84 return ( aWindow->GetHWND() == GetForegroundWindow() );
96 return aWindow->GetPosition();
122 case wxCURSOR_BULLSEYE:
146 return aWindow->GetContentScaleFactor();
152 return aWindow->GetDPIScaleFactor();
159 return wxDisplay( aWindow ).GetCurrentMode().refresh;
165 return aWindow->GetClientSize();
201 return wxGetMousePosition();
207 aWindow->WarpPointer( aX, aY );
216 ImmAssociateContext( aWindow->GetHWND(), NULL );
220 ImmAssociateContextEx( aWindow->GetHWND(), 0, IACE_DEFAULT );
227 const HIMC himc = ImmGetContext( aWindow->GetHWND() );
228 ImmNotifyIME( himc, NI_COMPOSITIONSTR, CPS_CANCEL, 0 );
229 ImmReleaseContext( aWindow->GetHWND(), himc );
263 return aColumn->WXGetSpecifiedWidth();
287 *aDisplayType = NATIVE_DISPLAY_TYPE::DISPLAY_WIN32;
290 *aHandle =
static_cast<void*
>( aWindow->GetHWND() );
std::shared_ptr< PNS_LOG_VIEWER_OVERLAY > overlay