Keeping MDI children within Frame 
Author Message
 Keeping MDI children within Frame

I have a MDI multi-doc template in VC++ 6
I am trying to figure out how to keep all children within the confines of
the main window, for both sizing and moving.
One of my problems is that I can't wait until they let go of the mouse to
determine whether it's outside the screen, I need to make sure as their
dragging it doesn't allow them to drap past the confines.
Does anyone have any ideas?

Thank you

John



Sun, 06 Mar 2005 20:00:42 GMT  
 Keeping MDI children within Frame
Hi John,

You can handle the WM_SIZING message , and change the pRect accordingly.

I hope it helps.

Best Regards,
Leo Chen

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------

| Subject: Keeping MDI children within Frame
| Date: Wed, 18 Sep 2002 14:00:42 +0200
| Lines: 13
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

| Newsgroups: microsoft.public.vc.mfc.docview
| NNTP-Posting-Host: 62.23.98.64
| Path: cpmsftngxa07!tkmsftngp01!tkmsftngp12
| Xref: cpmsftngxa07 microsoft.public.vc.mfc.docview:145
| X-Tomcat-NG: microsoft.public.vc.mfc.docview
|
| I have a MDI multi-doc template in VC++ 6
| I am trying to figure out how to keep all children within the confines of
| the main window, for both sizing and moving.
| One of my problems is that I can't wait until they let go of the mouse to
| determine whether it's outside the screen, I need to make sure as their
| dragging it doesn't allow them to drap past the confines.
| Does anyone have any ideas?
|
| Thank you
|
| John
|
|
|



Tue, 08 Mar 2005 10:15:33 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Keeping Child in MDI within App Frame

2. Q: Change view but keep frame and document in MDI

3. How to keep a MDI child always visible?

4. Keeping MDI Child Windows Maximized

5. Menus for MDI child frames

6. MDI Child Frame ID

7. Control Child Frame in MDI Environment.

8. Multiple MDI Child Frames/View

9. MDI: SetWindowPos of a child frame

10. MDI:setting the child frame size

11. key message in mdi child frame

12. MDI Child Frame Title No Numbers

 

 
Powered by phpBB® Forum Software