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.
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.