I am writing an MFC program which interfaces with AOL Instant Messenger. The idea is, I want to send a message to my buddy on a given interval. My program gets sports scores from a website and then notifies my buddy every 10 minutes or so.
I've got the data-from-the-website thing finished. What I'd like to do now is find a way to automate the messaging to AIM.
Right now, I'm trying to use FindWindow. I am able to find the main message window using a call like this:
CString wndIMTitle = m_BuddyName + " - Instant Message";
CWnd *wndIM = FindWindow("AIM_IMessage", (LPCTSTR)wndIMTitle);
Using Spy++, I discovered that there are 2 child windows - the input box and the message log. However, they are both of class Ate32Class and uncaptioned.
I want a pointer to CWnd which is equal to the second child window of wndIM.
Thanks in advance,