Quote Originally Posted by VictorN View Post
Did you try CFrameWnd::DockControlBar?
Yes, it is shown in the first post.

I describe the problem again:
I have several CControlBars. All of them must bu on the top of my frame. And first from the top must be CDialogBar, but that CDialogBar must be undockable. The other CControlBars I dock to the window with DockControlBar, and if I use DockControlBar to my CDialogBar control, it can be undocked with mouse, So the question is still the same - how can it be prevented to be undocked