I've been working for some time now on my guitar project and I can't seem to get my GUI program to interface properly with my DSP software. My teacher is no help so I am hoping the interenet can.
I have a picture link attached to give you an idea of what kind of program I'm working with:
Ok, I've figured out how to find the handle and send messages to controls on the main window (Green in pic):
CWnd * apptr = FindWindow(NULL, "Guitar FX BOX 2.6");
This finds me the handle and I can easily go from there...
My problem is when I try to send messages to any of the controls inside the red box, these being child windows, I am not able to use FindWindow.
I've tried using FindWindowEx, which is meant for child windows... but I am teaching myself so I cant seem to use it properly.
CWnd * apptr = FindWindowEx(*apptr, NULL, NULL, "Distortion on/off");
When I try this it can't find anything and returns a NULL value.
If anyone has any idea how to help me or needs me to re-explain something I'd be glad to, this is for a very important final project and I need to get it working!!
You might try calling GetLastError() to get some error information. You might also try using GetTopWindow() and GetNextWindow() to search through the child windows of apptr.
If this helps at all, this is a Spy++ screenshot to enumerate the child windows.
I got it to work, thanks for the help.