我在 CDialog 中添加了 CMFCTabCtrl。但我的问题是它不可见。这是我用来创建 CMFCTabCtrl 的代码。
m_TabControl.Create (CMFCTabCtrl::STYLE_3D, rectTab, this, 1, CMFCTabCtrl::LOCATION_TOP , TRUE);
m_TabControl.ShowWindow(TRUE);
m_wnd1.Create (WS_CHILD | WS_VISIBLE, CRect (0, 0, 100, 100), &m_TabControl, 1);
m_wnd1.SetFont (&afxGlobalData.fontRegular);
m_wnd1.SetWindowText ("Edit 1");
m_wnd2.Create (WS_CHILD | WS_VISIBLE, CRect (0, 0, 0, 0), &m_TabControl, 2);
m_wnd2.SetFont (&afxGlobalData.fontRegular);
m_wnd2.SetWindowText ("Edit 2");
m_wnd3.Create (WS_CHILD | WS_VISIBLE, CRect (0, 0, 0, 0), &m_TabControl, 3);
m_wnd3.SetFont (&afxGlobalData.fontRegular);
m_wnd3.SetWindowText ("Edit 3");
m_wnd4.Create (WS_CHILD | WS_VISIBLE, CRect (0, 0, 0, 0), &m_TabControl, 4);
m_wnd4.SetFont (&afxGlobalData.fontRegular);
m_wnd4.SetWindowText ("Edit 4");
m_TabControl.AddTab (&m_wnd1, "One", 0, TRUE);
m_TabControl.AddTab (&m_wnd2, "Two", 0, FALSE);
m_TabControl.AddTab (&m_wnd3, "Three", 0, FALSE);
m_TabControl.AddTab (&m_wnd4, "Four", 0, FALSE);
我在这里做错了什么?/...