Is there any way to find a window by an incomplete name?
For instance, how would you find a Google Chrome window which can have many title names?
like Stack Overflow - Google Chrome
FindWindow function would work great if the window would always have the same name as a function like the one below would solve it.
HWND chrome = FindWindow(NULL,_T("Stack Overflow - Google Chrome"));
SetForegroundWindow(chrome);
But, what happens if the name changes constantly (like browsers)? How can I find a window by searching for a fixed starting / ending?
I am looking for is something like FindWindow(NULL,_T("something here - Google Chrome")
.
Is there any way to do it?