首页
社区
课程
招聘
[求助]MDI子窗口最大化后不能还原。
发表于: 2013-10-8 20:44 5963

[求助]MDI子窗口最大化后不能还原。

bxc 活跃值
6
2013-10-8 20:44
5963
先上图:

代码我是从一个exe项目中copy到一个dll项目中的。exe中无此问题。
当MDI子窗口被最大化后。主窗口中控制子窗口的最小化、最大化、关闭 按钮都没有用。
是用 WM_MDICREATE 创建的子窗口。
什么情况啊?求指教。

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

上传的附件:
收藏
免费 0
支持
分享
最新回复 (2)
雪    币: 248
活跃值: (1106)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
Remarks

The MDI child window is created with the window style bits WS_CHILD, WS_CLIPSIBLINGS, WS_CLIPCHILDREN, WS_SYSMENU, WS_CAPTION, WS_THICKFRAME, WS_MINIMIZEBOX, and WS_MAXIMIZEBOX, plus additional style bits specified in the MDICREATESTRUCT structure. The system adds the title of the new child window to the window menu of the frame window. An application should use this message to create all child windows of the client window.

If an MDI client window receives any message that changes the activation of its child windows while the active child window is maximized, the system restores the active child window and maximizes the newly activated child window.

When an MDI child window is created, the system sends the WM_CREATE message to the window. The lParam parameter of the WM_CREATE message contains a pointer to a CREATESTRUCT structure. The lpCreateParams member of this structure contains a pointer to the MDICREATESTRUCT structure passed with the WM_MDICREATE message that created the MDI child window.

An application should not send a second WM_MDICREATE message while a WM_MDICREATE message is still being processed. For example, it should not send a WM_MDICREATE message while an MDI child window is processing its WM_MDICREATE message.
Requirements

Minimum supported client
        Windows 2000 Professional [desktop apps only]

Minimum supported server
        Windows 2000 Server [desktop apps only]
2013-10-9 13:02
0
雪    币: 7048
活跃值: (3527)
能力值: ( LV12,RANK:340 )
在线值:
发帖
回帖
粉丝
3
十分感谢,但问题已找到,
原来是子窗口的WM_COMMAND未处理好。
2013-10-10 11:07
0
游客
登录 | 注册 方可回帖
返回
//