截获捕获文件打开保存对话框 [英] Intercept Catch File Open Save Dialog

查看:110
本文介绍了截获捕获文件打开保存对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何截获"Windows文件保存打开"对话框的调用?我想对调用文件打开保存"对话框的任何应用程序执行此操作,我希望挂接到该对话框并将其扩展以执行其他功能.

我希望更改所有调用它的应用程序的对话框,而不仅仅是我自己的.

How can I intercept calls to the Windows File save Open dialog ? I would like to do this for any application that calls the file Open Save dialog, I wish to hook into the dialog and extend it to perform some other functionality.

I am looking to change the dialog for ALL applications that call it, not just my own.

推荐答案

我怀疑这很简单,因为对话框是在以下位置创建的应用程序中的随机点,并且没有任何Windows消息会告诉您它正在使用此对话框(WM_INITDIALOG除外).应用程序还可以出于自己的目的自定义对话框,因此在每种情况下看起来可能都不完全相同.您可以尝试捕获每个WM_INITDIALOG,然后尝试确定是否为打开/保存.
I doubt that this is a simple matter since the dialog gets created at random points in the applications, and there is no single Windows message which would tell you that it is using this dialog (apart from WM_INITDIALOG). Applications may also customise the dialog for their own purposes so it may not look exactly alike in every case. You could try capturing every WM_INITDIALOG and then trying to figure out if this is the Open/Save.


选中此

这篇关于截获捕获文件打开保存对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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