MFC 功能包 - 关闭后无法显示可停靠窗格
通过使用向导并选择 Office 2007 样式,您可以得到一个看起来像 IDE 的 UI - 左侧有一个可停靠的文件资源管理器窗格,右侧有一个可停靠的属性窗格。
但是,当您关闭这些可停靠窗格时,您将无法再次显示它们。 即使你重新编译项目。
我搜索了一些论坛,看起来我不是唯一遇到这个问题的人。 有什么办法可以再次显示这些窗格吗?
By using the wizard, and selecting Office 2007 style, you can come up with a UI that looks like an IDE - a dockable file explorer pane on the left, and a dockable properties pane on the right.
However, when you close these dockable panes, there's no way you can show them again. Even if you recompile the project.
I searched through some forums and looks like I'm not the only one having this problem. Is there any way to show these panes again?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这些设置存储在注册表中。 我创建了一个名为“office2007”的项目,在生成的向导文件 office2007.cpp 中,有一行设置注册表中的设置路径:SetRegistryKey(_T("Local AppWizard-Generate Applications "));
注册表中存储 Office2007 设置的路径为:HKEY_CURRENT_USER\Software\Local AppWizard-Generated Applications\office2007
如果您希望获得窗格的初始状态您应该删除注册表项:HKEY_CURRENT_USER\Software\Local AppWizard-Generated Applications\office2007\Workspace
These settings are stored in registry. I have created a project named "office2007", in the generated wizard file office2007.cpp there is a line which sets the settings path in registry: SetRegistryKey(_T("Local AppWizard-Generated Applications"));
The path in registry where the settings for office2007 are stored is: HKEY_CURRENT_USER\Software\Local AppWizard-Generated Applications\office2007
If you want to have the initial state of the panes you should delete the registry key: HKEY_CURRENT_USER\Software\Local AppWizard-Generated Applications\office2007\Workspace
如果您不想每次都删除注册表设置,您也可以将此行添加
到您的 CWinAppEx。 它将停止保存窗格的状态,并在每次程序打开时重新初始化它们。
If you don't want to delete your registry settings everytime, you can also add this line
to your CWinAppEx. It'll stop saving the state of your panes and reinitialize them every time the program opens.