Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
There is a need to move control out of the parent form. This is already implemented in many programs, for example, in the VS Solution Explorer can be dragged across the screen. In other words, I need to find a way to drag the control of any part of the screen, but all handlers should stay at parent.
Is there a way in MFC to solve this problem. Perhaps something has been written on this topic.

Grateful for the help.

Dmitry.
Posted

1 solution

Here is an CodeProject article that might help you:
Visual Studio IDE like Dock Container - Second Version[^]
Here is a second library - that also allows moving windows outside the main form:
http://www.datamekanix.com/[^]
We are actually using the Codejock Xtreme Toolkit (no Freeware) to achieve that at work - working very well. See here:
http://www.codejock.com/products/toolkitpro/?platform=mfc[^]
 
Share this answer
 
v2
Comments
Diego2la 30-Mar-12 8:02am    
Good solution, but I still cannot get controls beyond MainForm.
JF2015 30-Mar-12 8:04am    
The codejock toolkit can do that - wasn't sure about the article.
Diego2la 30-Mar-12 8:11am    
Sorry, no Freeware toolkit is not for me. I am a novice MFC-programmer.
JF2015 30-Mar-12 8:16am    
Have a look at the second link - this allows moving the window outside the form. Or, you can just google for "docking window mfc". Good luck!
Diego2la 30-Mar-12 8:18am    
thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900