MFC 功能包 - 关闭后无法显示可停靠窗格

发布于 2024-07-27 22:28:33 字数 196 浏览 5 评论 0原文

通过使用向导并选择 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

柠檬色的秋千 2024-08-03 22:28:34

这些设置存储在注册表中。 我创建了一个名为“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

勿忘初心 2024-08-03 22:28:34

如果您不想每次都删除注册表设置,您也可以将此行添加

m_bSaveState = FALSE;

到您的 CWinAppEx。 它将停止保存窗格的状态,并在每次程序打开时重新初始化它们。

If you don't want to delete your registry settings everytime, you can also add this line

m_bSaveState = FALSE;

to your CWinAppEx. It'll stop saving the state of your panes and reinitialize them every time the program opens.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文