Win32 C API for redirecting minimize animation

后端 未结 3 538
我在风中等你
我在风中等你 2020-12-20 19:21

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 redi

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-20 20:01

    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).

    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.

提交回复
热议问题