I'm using Winspector to find the window structure to the window I want to send the message to. However I have come across a problem in that there is sever Windows refered to as TPanel. How would I reference each one? I have attached the code that I'm using which returns the windows handle and prints it in notepad. Any suggestions would be greatly appreciated.
Dim hwndslx As Integer = FindWindow("TmdiMain", vbNullString)
Dim slxa As Integer = FindWindowEx(hwndslx, 0, "MDIClient", vbNullString)
Dim slxb As Integer = FindWindowEx(slxa, 0, "TfrmNewMainView", vbNullString)
Dim slxc As Integer = FindWindowEx(slxb, 0, "TPanel", vbNullString)