Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种方法——可能是 win32 API——从我的 .Net WPF 应用程序中冻结整个显示。
原因:嗯,这次不是为了惹恼用户。我基本上想隐藏一些后台文件操作,他们正在打开文件保存对话框。我的应用程序正在通过模拟击键来处理应用文件名。
正如所有评论都指出的那样,这可能是一个糟糕的设计,但无论如何你都需要一个答案。
我过去做过类似的事情,通过截屏并将其放置在一个没有边框或标题的窗口上,该窗口使用所有空间并且高于所有其他窗口。