mfc属性页:属性表标签上的位图在MFC,CB下的实现来源: 发布时间:星期四, 2008年9月25日 浏览:79次 评论:0
属性表标签(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 _disibledevent=i; tabcontrol1->perform ( tcm_setitem, i,(lparam) (lptcitem)&tcitem ); } } 0
相关文章读者评论发表评论 |