CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 1999
    Posts
    10

    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.




  2. #2
    Join Date
    Apr 1999
    Posts
    191

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

  3. #3
    Join Date
    Mar 1999
    Posts
    10

    Re: I have an MDI example that you may be able to modify





    Thank you,


    I welcome any help that you can provide.


    Dan



  4. #4
    Join Date
    Mar 1999
    Posts
    10

    I still can't figure it out.





    I don't even know where to start looking.


    Dan



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured