专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅

首页 »C 教程 » mfc属性页:属性表标签上的位图在MFC,CB下的实现 »正文

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

相关文章

读者评论

发表评论

  • 昵称:
  • 内容: