When CPaneContainer being destroyed it has m_tb.m_hWnd value left non-zero. This prevents window re-creation by calling Crate();
You seem to have CSS turned off.
Please don't fill out this field.
This is very specific and unusual scenario, and you can easily do that yourself, after destroying pane container window.