设置对话框背景颜色 [英] Setting Dialog Box Background Colour

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

问题描述

我一直在尝试在Visual C ++ 2008中更改模式对话框的背景颜色。



它应该很容易(不应该吗? )但是有点厚,即使在搜索Code Project中的文档之后我也无法做到这一点。



有谁能告诉我如何使用对话框资源编辑器创建一个具有所选背景颜色的对话框?



非常感谢期待,tnarb。

I've been trying to change the background colour of a modal dialog box in Visual C++ 2008.

It ought to be easy (shouldn't it?) but being a bit thick I haven't been able to do it even after searching through documentation in Code Project.

Can anyone tell me how I can create a dialog box with a chosen background colour using the dialog resource editor?

Many thanks in anticipation, tnarb.

推荐答案

看看其中 [ ^ ],你会在主题4.2中找到答案。



这很容易,你只需要处理WM_ERASEBACKGROUND消息。



您无法使用资源编辑器更改对话框背景颜色...< - edit。



希望这会有所帮助! :thumbsup:



PS:无论如何,使用背景颜色对话框visual c ++的小谷歌搜索会做到这一点......
Take a look here[^], you will find the answer in the topic 4.2.

It is easy, you need only to handle the WM_ERASEBACKGROUND message.

You can't change the dialog background colour using the resource editor... <-- edit.

Hope this helps! :thumbsup:

PS: Anyway, a small google search with "background color dialog visual c++" would have done it...


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

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