Hey guys, I am trying to make a simple program that interacts with TeamSpeak v2 (this is the current version that I have installed on my computer) and changes its text. The only problem is that it finds the window using FindWindow perfectly, but it doesnt do anything to the FindWindowEx. I receive no errors within my code. Any help?

#include <windows.h>

int main()
{
    HWND ts;
    HWND status;
    ts = FindWindow("TMainForm","TeamSpeak 2");
    if(!ts)
    {
           return 0;
    }
    SendMessage(ts,WM_SETTEXT,0,(LPARAM)"TeamSpeak 2 Test!");
    status = FindWindowEx(ts,NULL,"TStatusBar",NULL);
    if(!status)
    {
               return 0;
    }
    SendMessage(status,WM_SETTEXT,0,(LPARAM)"Test By: Luciano");
}

Thanks for reading my issue! :)

Please note that I used Spy++ to find the class name for the FindWindowEx, if that helps. I also am using Dev-C++ to compile my project, in some cases I may use VC2010 Beta 2 Pro.

Thanks,
Micah

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.