更改对话框的标题栏颜色 [英] change the title bar color of dialog box

查看:98
本文介绍了更改对话框的标题栏颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用vc ++使用vs 2010的资源编辑器创建了一个对话框。我想要更改此对话框标题栏的颜色..我搜索并发现可以使用OnNcPaint属性但找不到好的示例请帮助

i have created a dialog box using resource editor of vs 2010 using vc++.And i want to change the color of title bar of this dialog box.. i search and found it is possible using the OnNcPaint property but not find good example of this please help

推荐答案

你实现 OnNcPaint 与你用的OnPaint 。例如,请参阅此 Stack Overflow 问题:如何在非客户区域绘制? [ ^ ]。
You implement OnNcPaint is a similar way you would do with OnPaint. See, for instance, this Stack Overflow question: "How to draw in the nonclient area?"[^].


这篇关于更改对话框的标题栏颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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