Thank you, indeed, empty TabCtrl was not supported...
Two other notes about the code:
It leaves memory leaks. In real code, I think for dynamic tabs, you would want to use Array to store tabs. Remember, avoid 'new' and 'delete' whenever possible...
Also, setting frame for StatusBar breaks the visuals for bottom right resizing handle.