MFC: 'Gluing' two windows/dialogs together
Posted
by John
on Stack Overflow
See other posts from Stack Overflow
or by John
Published on 2010-04-14T13:18:55Z
Indexed on
2010/04/14
13:23 UTC
Read the original article
Hit count: 176
mfc
|visual-c++-2005
I'm trying to set something up so my main dialog has one or more child dialogs, and these are glued/docked to the outside of the main dialog - when the main dialog is minimised, the children are too, when main dialog moves, children move with it.
I'd tried setting child dialogs as having main dialog CWnd as parent, with CHILD style. But then they get clipped by the parent's boundary. If I set them as POPUP, they can be outside but then don't move with the parent.
I'm looking at putting an OnMove handler on the parent dialog, but is there something built-in? And, should child dialogs still be children of the main dialog... I assume they should?
This is VS2005 (I think VS2008 has some related functionality so I mention this).
© Stack Overflow or respective owner