<p>How can I dock a CControlBar derived window to the middle of a splitter window (CSplitterWnd)?  I would like the bar to be repositioned whenever the splitter is moved.</p>

<p>To make it a little clearer as to what I'm after, imagine the vertical ruler in the Dialog Editor in Visual Studio (MFC only).  It gets repositioned whenever the tree view is resized.</p>

Serge,
I apologize, I wasn't very clear.  The splitter would be between the resource view and the ruler bar.  It would looke like this:
Resource View | Vertical ruler | View
In any case, I found the (now obvious) answer: split the main frame into three windows:
```
```
m_wndSplitter.CreateStatic(this, 1, 3);

m_wndLeftPane.Create(&m_wndSplitter,WS_CHILD|WS_VISIBLE,m_wndSplitter.IdFromRowCol(0, 0));
m_ruler.Create(&m_wndSplitter,WS_CHILD|WS_VISIBLE,m_wndSplitter.IdFromRowCol(0, 1));

m_wndSplitter.CreateView(0, 2, pContext->m_pNewViewClass, CSize(300, 0), pContext);
SetActiveView((CScrollView*)m_wndSplitter.GetDlgItem(m_wndSplitter.IdFromRowCol(0, 2)));
```
```