I have two docked windows. Programmatically I have computed the sizes I want for them, and have set the size for both CExtDynamicControlBars via SetInitDesiredSizeVertical. I then dock each bar using:
virtual bool DockControlBar(
UINT nDockBarID,
UINT nCircleNo,
CFrameWnd * pDockSite = NULL, // can be NULL only if bar already was at once docked
bool bRecalcLayout = true
);
This appears to work fine, docking both to the left in cirlce 1, resulting in something like this:
|-------------------|
| Window One |
|-------------------|
| |
| |
| |
|-------------------|
| Window Two |
|-------------------|
| |
| |
| |
|-------------------|
However, if I minimize the app, then restore it, the docked windows rearrange themselves to this:
|-------------------|
| Window One |
|-------------------|
| Window Two |
|-------------------|
| |
| |
| |
| |
| |
| |
| |
|-------------------|
How do I prevent this behavior from occurring?
</p>
Kevin Murray, AGI