最近使用过的文件列表问题 [英] Most Recently Used file list problems

查看:45
本文介绍了最近使用过的文件列表问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个MFC SDI应用程序.创建它时,我在MRU文件列表中选择了8选项,因此在CMyApp ini函数中调用了LoadStdProfileSettings.但是,我注意到MRU列表并非始终有效.如果当时没有打开的文件,它将不起作用.但是,如果一个文件已经打开,并且我从MRU文件列表中选择了另一个文件,则可以正常打开.另外,MRU文件列表中仅显示文件名,而不显示完整路径.过去,整个路径已经显示出来,而且我不知道我更改了可能导致此问题的任何内容.

任何建议将不胜感激.
Thankyou:)

I have an MFC SDI App. When I created it, I selected the option to 8 on the MRU files list, so there is a call to LoadStdProfileSettings in the CMyApp ini function. However, I have noticed that the MRU list does not work all the time. It does not work if there is no file open at the time. However, if a file is already open and I select another file from the MRU file list, it opens fine. Also, just the file name shows in the MRU file list, not the full path. In the past, the whole path has shown, and I am not aware that I changed anything that could have cause dthis.

Any suggestion will be very much appreciated.
Thankyou :)

推荐答案

MFC应用程序中的设置存储在注册表中的以下位置:

HKEY_CURRENT_USER/软件/公司/AppName

公司的设置依据:

SetRegistryKey(_T("Company"));

而AppName是exe的名称.

因此,如果您更改用户,则列表也会更改.
Settings in MFC applications are stored in the registry under:

HKEY_CURRENT_USER/Software/Company/AppName

Where Company is set by:

SetRegistryKey(_T("Company"));

and AppName is the name of the exe.

So, if you change the user, the list changes.


这篇关于最近使用过的文件列表问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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