The forum announcement says: "The typical user of this forum will be: A developer who needs to make a control accessible." Hey, that's me :-)
I am maintaining an old Windows application that makes heavy use of MFC, especially when it comes to GUI stuff. Using a different technology is not an option. My current task is to make a control accessible and ready for automated testing. This control is build like this:
- The class is directly derived from CWnd.
- The greater part of its visible surface is covered by child windows.
- On what remains oncovered, the control draws some rectangles that act like buttons.
The CWnd implementation of accessibility gives me access to the child windows but (of course) not to those pseudo buttons.I started out overriding get_accChildCount and some more virtual CWnd functions, with good results as far as the inspect.exe tools is concerned. However the test automation client still fails to see the pseudo buttons, and I am at loss what else I could do. The client uses Selenium/Winium technology, which may pose an additional layer of difficulty. Maybe someone can point me to a working example of explicitly implemented accessibility in a CWnd-derived class, I hope I can work out the details myself.
(A good book might also do...)
Thank you
Hans