Okay, I am making a small application that retrieves the conversation text from the AOL Instant Messenger application. I type in the user's screen name of the window to monitor, and that works alright. Now, I need to get a CWnd* object to the RichEdit child window. It is finding the parent IM window as it should. Also, the class name of the child window is Ate32Class, which I got from the Spy++ MSVC++ tool. When I do this:
Code:
m_pChild = m_pWnd->FindWindow("Ate32Class", NULL); // Find child window
if (! m_pChild) // Error finding text window?
{
AfxMessageBox("Error finding conversation text window!\n"); // Display error message
return; // Exit function
}
It shows me the error message. It isn't finding the child window of parent 'm_pWnd'. If you can give me any help, please do.
Thanks,
Matt U.