I am extending CTabCtrl but but cant insert any tabs
<p>I am extending <code>CTabCtrl</code> but when I call <code>InsertItem</code> on my extended object none tab gets inserted. Who knows why is that. What do I do wrong?</p>

<pre><code>class MyTabControl : public CTabCtrl
{
public:
    MyListControl       m_listCtrl;
    void                switchInterface(IDataProvider *provider);
public:
    MyTabControl();
    ~MyTabControl();
    afx_msg void OnGetDispInfo(NMHDR *pNMHDR, LRESULT *pResult);
protected:
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
    DECLARE_MESSAGE_MAP()
};
</code></pre>

<p>If I remove ON_WM_CREATE() macro from message map then I can add tabs. Implementation of OnCreate function contains m_listCtrl.Create() function call and return 0 if list control is created successfully. What is wrong with this?</p>