如何更改CMFCTabCtrl'关闭按钮backcolor [英] How to change the CMFCTabCtrl' close button backcolor

查看:242
本文介绍了如何更改CMFCTabCtrl'关闭按钮backcolor的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CMFCTabCtrl



当标签项上的鼠标,关闭按钮''背景颜色为灰色时如何更改颜色,或使用位图

CMFCTabCtrl

when mouse on the tab item,close button''backcolor is gray.how to change the color,or use bitmap

推荐答案

请在MFC源目录中搜索:: OnDrawTabClos​​eButton,

在所有找到的行中设置断点,然后启动调试器。 。



现在,您可以提供自己的可视化管理器,公开给第一个触发的类,

重新实现虚拟功能并设置它(您的经理)为您的申请:)
Please search for "::OnDrawTabCloseButton" in your MFC source directory,
set the breakpoints there, at the all found rows, and start your debugger...

Now, you could provide your own visual manager, public to the first triggered class,
reimplement the virtual function and set it (your manager) for your application :)


这篇关于如何更改CMFCTabCtrl'关闭按钮backcolor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆