Solved

Docking

Posted on 2000-04-28
2
281 Views
Last Modified: 2013-11-20
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
Comment
Question by:bradsoblesky
2 Comments
 
LVL 10

Accepted Solution

by:
RONSLOW earned 23 total points
ID: 2762056
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
 

Author Comment

by:bradsoblesky
ID: 2762316
Yes lock them side by side, but only when one comes within say 20 or 30 pixels of the other.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now