简体   繁体   English

如何启用小工具调整大小

[英]How to enable Gadget resize

If we look at out of the box Windows gadgets such as Weather , they include a button (apart from settings) which enables the resize of the gadget window. 如果我们查看开箱即用的Windows小工具(例如Weather),它们将包含一个按钮(除设置外),可用于调整小工具窗口的大小。

Does anybody know how can I include this button my own gadget ? 有人知道我该如何在自己的小工具中包含此按钮?

I have built a custom gadget but does not have this small button. 我建立了一个自定义小工具,但没有这个小按钮。

You need to provide onDock and onUndock handlers for the button to be seen. 您需要提供onDock和onUndock处理函数才能看到该按钮。 Please see 请参见

onDock event: http://msdn.microsoft.com/en-us/library/ff486201(v=vs.85).aspx onDock事件: http : //msdn.microsoft.com/zh-cn/library/ff486201( v=vs.85) .aspx

onUndock event: http://msdn.microsoft.com/en-us/library/ff486205(v=vs.85).aspx onUndock事件: http : //msdn.microsoft.com/zh-cn/library/ff486205( v=vs.85) .aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM