This is probably an easy one for a GUI programmer, which I'm not...
In a tool I'm working on (GUI "spy" for internal use) I have the handle of a control the user has chosen. I would like to get the handle of the window that contains the control, in order to sent it a certain message. Now:
- The control could be of various types, and possibly the window itself
- The control is created by another process
- The containing window can be an MDI child, main, pop-up, whatever
- I'd rather not use MFC
So, what's the easiest way to get it done?