本文介绍了MainFrame仅包含可停靠窗格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我遇到了问题,不得不寻求帮助.

我想创建一个仅具有可停靠窗格的应用程序(MSVC 2008,基于MFC的C ++项目).创建不带文档/视图架构的单个文档(以使其尽可能简单,但具有可停靠的窗格的支持),我几乎得到了我想要的(可停靠的窗格).问题是如何摆脱没有可停靠窗格的MainFrame客户区?
让我通过一个例子澄清我的问题.当我移动一个可停靠窗格时,它不适合客户区域,因此完全留出了我不想要的虚构CChildView的空间.我想要的是MainFrame始终只填充可停靠的窗格.可能吗?我曾考虑过重写大小调整事件并扩展其中一个窗格以适合客户区域,但是我认为这不是一个好主意.

在此先感谢

Hi there,

I''m stuck with a problem and have to ask for the help.

I want to create an application that has only dockable panes (MSVC 2008, MFC based C++ project). Creating Single document w/o Document/View architecture (to keep it as simple as possible, but with support of dockable panes) I get almost what I want (dockable panes). The question is how to get rid of client area of MainFrame where there are no dockable panes left?
Let me clarify my question on an example. When I move one of my dockable panes it does not fit the client area entirely leaving space for imaginary CChildView which I don’t want to have. All I want is MainFrame always filled in with only dockable panes. Is it possible? I thought about rewriting resize event and expand one of the panes to fit client area, but I don''t think it''s a good idea.

Thanks in advance

推荐答案



这篇关于MainFrame仅包含可停靠窗格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 05:01