private static bool HasStaticEdgeExtendedStyle(IA11yElement e) { var platformProperty = e?.GetPlatformPropertyValue <uint>(PlatformPropertyType.Platform_WindowsExtendedStylePropertyId); const uint WS_EX_STATICEDGE = 0x00020000; return((platformProperty & WS_EX_STATICEDGE) != 0); }
private static bool IsSimpleStyle(IA11yElement e) { if (e == null) { throw new ArgumentNullException(nameof(e)); } var style = e.GetPlatformPropertyValue <uint>(PlatformPropertyType.Platform_WindowsStylePropertyId); const int CBS_SIMPLE = 1; return((style & CBS_SIMPLE) != 0); }