multi row tab control
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
When I changed tab control properties from porperties dialog to multiline ,application crashes. Waht si different to init tab when this option is selected my init code in oninitdialog is HIMAGELIST hList = ImageList_Create(16,16, ILC_COLOR8 |ILC_MASK , 8, 1); m_cImageList.Attach(hList); CBitmap cBmp; cBmp.LoadBitmap(IDB_BITMAP_LIST_SMALL); m_cImageList.Add(&cBmp, RGB(255,0, 255)); cBmp.DeleteObject(); m_tab.SetImageList(&m_cImageList); m_tab.InsertItem(0,"Tab 1",3); m_tab.InsertItem(1,"Tab 2",2); m_tab.InsertItem(2,"Tab 3",7); m_tab.InsertItem(3,"Tab 4",0);