Win32的C API重定向最小化的动画 [英] Win32 C API for redirecting minimize animation

查看:271
本文介绍了Win32的C API重定向最小化的动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我见过的RocketDock重定向使窗口最小化到Dock中的最小化Vista的动画,只是好奇这是怎么回事。被重定向到被告席上的实际最小化的动画,或者是像一个钩子从最小化窗口停止Windows和的RocketDock有当窗口最小化的自定义动画?

I have seen RocketDock redirect the minimize animation in Vista so windows minimize to the dock, and am just curious how this was done. Is the actual minimize animation redirected to the dock, or is something like a hook to stop Windows from minimizing the window and RocketDock has a custom animation when the window is minimized?

推荐答案

ptMinPosition 成员=htt​​p://msdn.microsoft.com/ EN-US /库/ ms632611%28V = vs.85%29.aspx相对=nofollow> WINDOWPLACEMENT 结构指定窗口时的坐标它被最小化,所以 SetWindowPlacement 功能可用于这种效果。但是,一些测试表明该窗口不应该有一个任务栏按钮的工作(即没有的 WS_EX_APPWINDOW )。

The ptMinPosition member of the WINDOWPLACEMENT structure specifies the coordinates of the window when it is minimized, so SetWindowPlacement function can be used to that effect. But some testing shows the window should not have a task bar button for that to work (i.e. no WS_EX_APPWINDOW).

我不知道的RocketDock是如何工作的,但我想这可以通过安装一个全球性的 WH_CBT 挂钩,并呼吁采取行动(设置ex_style,然后设置最小坐标) HCBT_MINMAX 的通知。

I don't know how RocketDock works, but I guess this could be achieved by installing a global WH_CBT hook, and acting upon (setting the ex_style and then setting minimized coordinates) HCBT_MINMAX notification.

这篇关于Win32的C API重定向最小化的动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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