Click to See Complete Forum and Search --> : Child Frame window does not follow mouse while dragging.


Dan
March 29th, 1999, 08:55 AM
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.

Bore
March 29th, 1999, 10:37 AM
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 DanRad@hotmail.com.

Dan
March 29th, 1999, 12:28 PM
Thank you,


I welcome any help that you can provide.


Dan

Dan
March 30th, 1999, 12:15 PM
I don't even know where to start looking.


Dan