I've uploaded a screenshot of what Spy++ is telling me. I'm trying to find the HWND of the element highlighted, however the first dialog is taking precedence over the second (obviously). How can I find the HWND of the element in the second dialog class:RichEdit20W, rather than the first RichEdit20W in the first dialog?
This is my code so far:
However, it's unfortunately returning the HWND of the first RichEdit20W, rather than the second one
using namespace std;
int main ( int argc, char * argv )
chatwindow = FindWindowA ( "ChatSkinWnd", 0 );
dialog = FindWindowExA ( chatwindow, 0, "#32770", 0 );
richedit = FindWindowExA ( dialog, 0, "RichEdit20W", 0 );
Any help will be greatly appreciated.