在对话式domodal上改变/调暗窗口的颜色 [英] changing/dimming the color of window on dialog domodal

查看:95
本文介绍了在对话式domodal上改变/调暗窗口的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在对话框的domodal期间更改应用程序的颜色。例如,请参阅以下图片,



http://powerbundle.systweak.com/images/en-US/RCP/rcp_2.jpg



http://howto-uninstall.windowsuninstaller.org/wp-content/uploads/2013/ 07 / Uninstall-RegClean-Pro-6.jpg



http://screenshot.it.sftcdn.net/it/scrn/319000/319354/regclean-pro-35.jpg

I need to change the color of the application during the domodal of a dialog. For eg see the following images,

http://powerbundle.systweak.com/images/en-US/RCP/rcp_2.jpg

http://howto-uninstall.windowsuninstaller.org/wp-content/uploads/2013/07/Uninstall-RegClean-Pro-6.jpg

http://screenshot.it.sftcdn.net/it/scrn/319000/319354/regclean-pro-35.jpg

推荐答案

最简单的方法是创建一个具有指定颜色和不透明度(alpha混合)的新窗口,并将其加载到主窗口上方。在调用 DoModal 之前执行此操作,并在从对话框返回时将其销毁。
The simplest way would be to create a new Window of the specified colour and opacity (alpha blend), and load it above your main window. Do this before calling DoModal and destroy it on return from the dialog.


这篇关于在对话式domodal上改变/调暗窗口的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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