In Oleacc.h :
#define STATE_SYSTEM_FOCUSABLE ( 0x100000 )
#define STATE_SYSTEM_HASPOPUP ( 0x40000000 )
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Im using this code to get the value of LegacyIAccessible.State:
show in the picture below:
IUIAutomationElement* element = nullptr;
hr = elementArray->GetElement(nItem, &element);
BSTR bstrName;
hr = element->get_CurrentName(&bstrName);
UIA_HWND hwnd;
hr = element->get_CurrentNativeWindowHandle(&hwnd);
BSTR bstrId;
hr = element->get_CurrentAutomationId(&bstrId);
RECT rect;
hr = element->get_CurrentBoundingRectangle(&rect);
IUIAutomationLegacyIAccessiblePattern* pattern;
element->GetCurrentPatternAs(UIA_LegacyIAccessiblePatternId, IID_PPV_ARGS(&pattern));
DWORD state = 0;
pattern->get_CurrentState(&state);
When the value of state
is 1074790400
witch in hex represent 0x40100000
How i could interpret this value to get these values in the picture? i mean: focusable
has popup
(0x40100000).
In Oleacc.h :
#define STATE_SYSTEM_FOCUSABLE ( 0x100000 )
#define STATE_SYSTEM_HASPOPUP ( 0x40000000 )