Afxwnd class control



Has anyone had any luck with interacting directly with elements inside an afxwnd class control? All of my research so far seems to indicate it’s impossible because of the way the elements are drawn inside of the control. I was able to leverage the OCR capability to for the most part accomplish what I needed but it’s not the fastest or most accurate solution as the OCR would occasionally fail to identify the element I was trying to click on. I had to add in an additional OCR step if the initial OCR locator failed which for the most part solved the problem.