Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 340
  • Last Modified:

Docking

Is there an easy way to dock two dialog boxes or woudl i have to use some type of GetWindowRect() and then SetWindowPos()? (no detailed answer needed)
0
bradsoblesky
Asked:
bradsoblesky
1 Solution
 
RONSLOWCommented:
what do you mean by 'dock two dialog boxes'?

Do you mean you want them side-by-side?  Or do you want both of them docked within some other frame?

To dock within a frame, make then CDialogBar's

To dock side-by-side, you would probably make one dialog always appear next to the other.  I'd respond to the Window pos changed message for the first dialog, and from there update the position of the other dialog.
0
 
bradsobleskyAuthor Commented:
Yes lock them side by side, but only when one comes within say 20 or 30 pixels of the other.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now