I need to enable accessibility for the CMFCMenubar
to use it in the coded ui test (not supported by default) as mentioned in this post on MSDN Visual Studio blog that MFC feature pack controls (like CMFCMenuBar
) are not fully supported.
I used a tool that test the accessibility support in my software it is in this path C:\Program Files\Windows Kits\8.1\bin\x86 "inspect.exe", when I used UI Automation it works, but when I use the MSAA (the same technology used in the coded ui test) it fails.
I tried the following hopping to make it work:
- I created a new project and checked the support Accessibility checkbox in the wizard.
- I called the method
GetGlobalData()->EnableAccessibilitySupport(TRUE);
in the first entry of the application. - I called
EnableActiveAccessibility();
in the frames, also for themenubar
(it is call it by default if theGetGlobalData()->IsAccessibilitySupport()
istrue
)
but it failed , How to enable it I need some help