OnCtlColor函数的参数值 [英] OnCtlColor function's parameter value
本文介绍了OnCtlColor函数的参数值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
afx_msg HBRUSH OnCtlColor(
CDC * pDC,
CWnd * pWnd,
UINT nCtlColor
);
大家好,在上面的函数声明中,当我们使用VC的Tab控件时,最后一个参数(nCtlColor)的值(如CTLCOLOR_BTN,CTLCOLOR_DLG)应该是什么.请帮助我...
在此先感谢您...
afx_msg HBRUSH OnCtlColor(
CDC* pDC,
CWnd* pWnd,
UINT nCtlColor
);
hi all, in the above function declaration, what should be the value of(such as CTLCOLOR_BTN, CTLCOLOR_DLG) last parameter(nCtlColor) while we are using Tab control of VC.please help me...
thank you in advance...
推荐答案
在标签控件中,此操作方式不同...您应该考虑使用ownerdraw ...
请查看本文 [文章区域 [ ^ ] ...
希望这可以帮助! :thumbsup:
In tab controls this don''t work in the same way... you should think on going ownerdraw...
take a look at this article [^]in the MSDN it will help you doing what you want...
Apart of that, you can get plenty of information and examples in this article area[^] on CP...
Hope this helps! :thumbsup:
这篇关于OnCtlColor函数的参数值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文