Im having a issue with finding a window. I can use (code below) and find the active notepad window
hc = GetDlgItem(FindWindow(NULL,"Untitled - Notepad"),15);
When i use (code below) the window is never found. This is the correct class and title names.
hc = FindWindow("Notepad","Untitled-Notepad");
I am actually looking to send a messages to the external window. I have the class name and the title name, but dont seem to be able to get a handle to it. I used spy and WinID to get the handle and class names. Any suggestions how to solve this. I nice code snippet would be greatly appreciated.