重叠的透明对话框 [英] Overlapped transparent dialog

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

问题描述

你好,

我需要实现以下内容:
当用户按下按钮时,将开始一个新的过程.该过程大约需要一分钟才能完成,并且必须禁用我的应用程序的所有控制.

我想制作一个半透明层,覆盖所有对话框的控件,并且其中包含一个动画(正在等待动画).
关键是它可以防止用户与对话框的控件进行交互并与之交互,并显示图像(或动画)

该怎么做?

我尝试在对话框的OnPaint()中绘制半透​​明的PNG,但它是作为背景绘制的.我想知道是否我可以控制对话框控件的绘制顺序,以便我可以在其他控件上最后绘制PNG?


谢谢.

Quy

Hi there,

I need to implement something like this:
when user press a button, a new process will start. The process takes about a minute to finish, and all the control of my application must be disable.

I want to make a semi-transparent layer overlapping all dialog''s control, and it contains an animation (waiting animation).
The key point is that it prevent user from and interact with dialog''s control, and showing the images (or animation)

How to do that?

I tried drawing a semi-transparent PNG in OnPaint() of the dialog, but it is drawn as background. I wonder if there is anyway that i can control the order in which dialog''s controls are drawn, so that i can draw PNG last, over others?


Thanks.

Quy

推荐答案

为了使对话框透明,请查看^ ]来自尼克·威尔逊 [
In order to make a dialog transparent, take a look at this article[^] from Nic Wilson[^] here in CP.

Hope this helps!


这篇关于重叠的透明对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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