如何在WinCE中将背景颜色设置为对话框? [英] How to set the background color to dialog box in WinCE??

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

问题描述


是WinCE应用程序的新手。


我需要将对话框的背景颜色设置为特定的我试过,


SetBkColor();



CreateSolidBrush()和FillRect()来设置背景颜色..


但是没有得到必要的更改..


请任意帮助完成这项任务...


 谢谢...

解决方案

尝试处理WM_ERASEBACKGROUND并致电FillRect那里。 如果这不起作用,请发布一些您尝试过的代码。


Hi,

am new to the WinCE applications.

I need to set the background color of the dialog box to particular color.

I tried,

SetBkColor();

and

CreateSolidBrush() and FillRect() to set the background color..

But am not getting required change..

Please any help for this task...

 Thanks...

解决方案

Try handling WM_ERASEBACKGROUND and calling FillRect there.  If that doesn't work, post some code of what you have tried.


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

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