GetWindowText(hwContact, szContact, 256);
				strcpy(&szContact[strlen(szContact)], " - Conversation");
				FindWindow(NULL, szContact);
				break;

once its found the window of szContact, how can i bring that window to the front

GetWindowText(hwContact, szContact, 256);
				strcpy(&szContact[strlen(szContact)], " - Conversation");
				SetForegroundWindow(FindWindow(NULL, szContact));
				break;

that works if the window isnt minimized.

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.