Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 338
  • 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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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