Form focus and passing click to controls
Posted on 2003-03-19
I wonder if anyone can help me, I've been trying to find a solution to this problem for weeks.
I have an MDI based application in VB6 that has multiple docked windows (uses Vermod dockable OCX) and a child form in the middle (as the main editing area).
The problem is when I go to click on one of the docked forms(or even an undocked or normal form) you have to click once to focus the window and once again to focus the control you want on that form, and you can't do it with a double click either. What I want to happen is when the user clicks the control on the docked form (without focus) it performs the action on the control and focus's the form.
I've tried using the mouse_event api calls and the SendMessage api call but neither seem to work well enough. I know its possible because other applications (such as Macromedia Homesite, VB6 IDE) that have docking windows do exactly what I want. Obviously most of these weren't created in VB
Hope that makes sense.