Hey,
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:
Code:
#include <iostream>
#include <windows.h>
using namespace std;
int main ( int argc, char * argv )
{
HWND chatwindow;
HWND dialog;
HWND richedit;
chatwindow = FindWindowA ( "ChatSkinWnd", 0 );
dialog = FindWindowExA ( chatwindow, 0, "#32770", 0 );
richedit = FindWindowExA ( dialog, 0, "RichEdit20W", 0 );
return 0;
}
However, it's unfortunately returning the HWND of the first RichEdit20W, rather than the second one
Any help will be greatly appreciated.
Thanks,
Matt N