更改对话框窗口的背景色 [英] Change dialog window background color

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

问题描述

大家好,

我希望WM_CTLCOLOR消息在SendMessage的帮助下发送到对话框窗口.请帮帮我,我应该在SendMessage(hWnd,WM_CTLCOLOR,----,----)中使用哪个参数;

我只是想在窗口中更改背景颜色.

谢谢
Vivek chauhan

Hi all,

I want WM_CTLCOLOR message send to dialog window with help of SendMessage. Please help me out, which parameter should I use with SendMessage(hWnd,WM_CTLCOLOR,----,----);

I am just trying to change background color in window.

Thanks
Vivek chauhan

推荐答案

您可能会在文档中找到[
As you may find in the documentation [^], wParam mush be the HDC used to update the control, while wParam must be the handle of the control itself (you may also find this notification is obsolete).
Now, what are you trying to do?

vivek.chauhan2009写道:
vivek.chauhan2009 wrote:

我正在尝试更改窗口中的背景颜色.

I am just trying to change background color in window.


?

:)


Something like this?

:)


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

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