Child Frame window does not follow mouse while dragging.
Hi,
My application is an SDI application that can open one or two additional
SDI windows by selecting a menu item.
I dynamically create a new SDI Frame/View using MFC's template class.
The second SDI view window is a child window of the main SDI.
Everything works fine until I do the following:
- I set the second SDI Frame window's parent to be the main SDI's view window.
I do this because I want the second SDI frame to be confined within the main
window as opposed to having it float all over the screen.
The problem occurrs when I try to move the child frame (second SDI) with the mouse. The child frame immediately appears an inch or so lower than the mouse position. When I finish dragging the window, it snaps back next to the current mouse position. This is just not right. What is causing this and how can I fix it?
Thank You,
D.B.
P.S. Please don't recommend MDI. It is not appropriate for my app.
I have an MDI example that you may be able to modify
Ok, I won't recommend MDI, but I have an MDI example that may help you. It's very simple and small. Perhaps you could learn something helpful from it and apply it to your current problem. Let me know if you want it, and I will email it to you at [email protected].
Re: I have an MDI example that you may be able to modify
Thank you,
I welcome any help that you can provide.
Dan
I still can't figure it out.
I don't even know where to start looking.
Dan