自定义“另存为”对话框(win API) [英] Customizing the Save As Dialog Box (win API)

查看:121
本文介绍了自定义“另存为”对话框(win API)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题是:

如何在编辑框中禁用用户的输入,这样他就无法输入名称或修改它? br />
似乎我在这里找到了一些关于它的信息

http://msdn.microsoft.com/en-us/library/windows/desktop/ms646960(v=vs.85).aspx#_win32_Explorer_Style_Control_Identifiers [ ^ ]



这里是链接的引用:



cmb13掉落-down组合框显示当前文件的名称,允许用户键入要打开的文件的名称,并选择最近打开或保存的文件。这适用于早期与Explorer兼容的应用程序,不带钩子或对话框模板。与edt1比较。

这里是引用:

edt1编辑控件显示当前文件的名称,或允许用户键入名称要打开的文件。与cmb13相比。



但我仍然无法理解如何将其放入代码中。在此先感谢!

Hi, the question is :
how to disable user's input in the edit box, so he won't be able to input the name or modify it?
it seems i've found some information about it here
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646960(v=vs.85).aspx#_win32_Explorer_Style_Control_Identifiers[^]

here is the quote from the link:

cmb13 Drop-down combo box that displays the name of the current file, allows the user to type the name of a file to open, and select a file that has been opened or saved recently. This is for earlier Explorer-compatible applications without hook or dialog template. Compare with edt1.
here is the quote :
edt1 Edit control that displays the name of the current file, or allows the user to type the name of the file to open. Compare with cmb13.

but still i can't work out how to put it in code. Thanks in advance!

推荐答案

也找到了如何做到这一点:

http://msdn.microsoft.com/en-us/library/windows/desktop/bb849132(v=vs.85 ).aspx [ ^ ]

但我如何知道另存为对话框的编辑框的HWND?
also found how to do this:
http://msdn.microsoft.com/en-us/library/windows/desktop/bb849132(v=vs.85).aspx[^]
but how do i know the HWND of the edit box of the Save As dialog?


这篇关于自定义“另存为”对话框(win API)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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