I'm rebuilding a MFC MDI application with the new extended classes (CMDIFrameWndEx, etc) in Visual Studio 2010. All OK except for some CDialogBars that I have some trouble regarging keeping same behaviour when using panes instead.

1. How to disable or prevent resizing of a CDockablePane?

I have tried various approaches without any luck...
- Create with dwControlBarStyle excluding AFX_CBRS_RESIZE
- Create with dwStyle including CBRS_SIZE_FIXED
- SetResizeMode RESIZE_NO
- Overriding OnSize

2. How to enable docking of CMFCToolBars along the side of the pane?

This was working with CDialogBar and CToolBar, but I couldn't find how to do it with the new pane classes and CMFCToolBar.