如何覆盖或自定义 Windows 中的删除确认对话框? [英] How can I override or customize the delete confirmation dialog in Windows?

查看:32
本文介绍了如何覆盖或自定义 Windows 中的删除确认对话框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们按下 Shift+Delete 键时,会生成一个删除确认对话框.我想根据需要处理此对话框或更改其消息.谁能告诉我是什么原因导致了那个对话?

When we press Shift+Delete key, a delete confirmation dialog is generated. I want to handle this dialog according my need or change its message. Can anyone tell me what thing is responsible for that dialog?

我要么需要知道处理由 Windows XP 中 Shift+Delete 键序列生成的删除确认对话框的代码,或者我们可以控制的代码这个操作.

I either need to know the code which handles the delete confirmation dialog generated by the Shift+Delete key sequence in Windows XP, or the code by which we can control this operation.

推荐答案

我不认为你想做的事情会很有趣.

I don't think what you want to do is going to be fun.

我猜你必须拦截SHFileOperation 函数(以及 IFileOperation 接口(Vista 以上)

Im guessing you have to intercept the SHFileOperation function (and the IFileOperation interface for Vista onward)

这是我的 google-fu 在 winapi 拦截上给我的:http://www.codeproject.com/kb/system/hooksys.aspx

Here what my google-fu got me on winapi interception: http://www.codeproject.com/kb/system/hooksys.aspx

你可能想看看这个:http://easyhook.codeplex.com/

本项目支持扩展(挂钩)非托管代​​码(API)与纯粹管理的,从一个完全像 C# 这样的托管环境使用Windows 2000 SP4 及更高版本...

This project supports extending (hooking) unmanaged code (APIs) with pure managed ones, from within a fully managed environment like C# using Windows 2000 SP4 and later...

祝你好运!=)

这篇关于如何覆盖或自定义 Windows 中的删除确认对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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