|
-
March 15th, 2006, 01:54 PM
#1
Child dlg can only move w/in parent client region.. help!
Hello all,
I have a MFC that I have a parent dlg and 2 child dlgs. I have 1 parent dlg with 2 child windows instead of just having 2 pop-up dlgs is because for data communication.
Here is the obsticle: I have overriden the OnMoving() in the child window class so that there is some mouse dragging/moving possible for the child window with
GetParent()->MoveWindow(pRect);
However, this moving is bounded by the client area of the child window that it can only move inside the parent window.
Ok. I am very stuck.
1. I don't ever show the parent dlg but only needs it for handling the messages. i.e. OnTimer() it calls the child windows.
2. How can I break this "boundary"? I noticed the boundary got re-defined after I let go of the mouse.
3. Speaking for the designing purposes, if I were to use 2 threads for each child window, and make them a pop-up instead and get rid of the parent dlg, how can I have the 2 child windows talk to each other?
Would thread be a better approach?
I am on this for 3 days now... please help me.
Jiac
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|