Shell更换-如何更换Windows任务栏 [英] Shell Replacement - How to replace Windows taskbar

查看:223
本文介绍了Shell更换-如何更换Windows任务栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个自定义Windows Shell,我正在寻找有关替换任务栏的代码示例.如果您杀死Windows外壳程序(explorer.exe),则将运行到最小化状态的应用程序放置在屏幕底部.我需要能够覆盖此默认行为,并在自定义工具栏中管理最小化的应用程序.我正在寻找一种方法来告诉Windows在最小化应用程序时通知我的工具栏,并让我处理它们的显示方式,而不使用Windows默认位置.

I''m creating a custom windows shell and I''m looking for code examples on replacing the taskbar. If you kill the Windows shell (explorer.exe), then running applications that become minimized are placed along the bottom of the screen. I need to be able to override this default behavior and manage the mimimized applications in a custom toolbar. I am looking for a way to tell Windows to notify my toolbar when applications are minimized and let me handle how they are displayed and not use Windows default location.

推荐答案

1 .)使用函数EnumDesktopWindows检查所有顶级窗口.
2.)使用WH_SHELL参数调用函数SetWindowsHookEx.
3.)钩子必须位于dll内才能进行系统范围的钩子.
祝你好运.
顺便说一句:Windows Shell具有太多功能,您一生都无法替代.例如:托盘窗口等.
1.) Use the function EnumDesktopWindows to examine all top-level windows.
2.) Call the function SetWindowsHookEx with WH_SHELL parameter.
3.) The hook has to be inside a dll for a system wide hook.
Good luck.
btw: the windows shell has too many function you can''t replace in your lifetime. for instance: tray windows and so on.


这篇关于Shell更换-如何更换Windows任务栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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