调整大小后,最大化大型机窗口时,DockablePane状态不会被正确记住 [英] DockablePane state is not remembered properly while maximizing the mainframe window after resizing it

查看:124
本文介绍了调整大小后,最大化大型机窗口时,DockablePane状态不会被正确记住的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我通过visual studio向导创建了一个示例MDI应用程序。





调整到最小值后,它变为如下所示。



之后调整大小如果单击最大化按钮,属性窗口窗格不会出现。



如何保留属性窗口?

解决方案

属性窗格是仍然存在,但它已减少到0宽。 您可以通过设置最小尺寸来防止这种情况发生。 例如,在向导生成的项目中,将以下声明添加到PropertiesWnd类

 public:
virtual void GetMinSize(CSize& size )const;

和实现 -

 void CPropertiesWnd :: GetMinSize(CSize& size )const 
{
size.cx = 200;
size.cy = 414;
}





Hi,

I created a sample MDI application through visual studio wizard.


After resizing to the minimum, it becomes like below.

After resizing IF I click maximize button, the properties window pane is not appearing.

how to retain the property window?

解决方案

The property pane is still present but it has been reduced to 0 width.  You can prevent this from happening by setting a minimum size.  For example, in the wizard generated project add the following declaration to the PropertiesWnd class

public:
	virtual void GetMinSize(CSize & size) const;

and implement -

void CPropertiesWnd::GetMinSize(CSize & size) const
{
	size.cx = 200;
	size.cy = 414;
}



这篇关于调整大小后,最大化大型机窗口时,DockablePane状态不会被正确记住的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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