属性表标签上的位图在MFC、CB下的实现2009-10-22属性表标签(tab control)支持在每一个item上放Image 图片。在mfc下实现相当简单,可分为以下几步:step1: create a bitmap resource with the images
you can also use icons or even create the images at run time. the size of the images should be in proportion to the height of the label. step2: add member variable of type Cimagelist
protected: CImagelist m_imagetab; step3: Override OnInitDialog() and add code to it bool CmyPropSheet::OnInitDialog() { bool bresult=CProperttySheet::OnInitDialog(); m_imagetab.create(IDB_TABIMAGES,13,1,RGB(255,255,255)); CTabCtrl *pTab=GetTabControl(); pTab->SetImageList(&m_imagetab);