简体   繁体   English

在MapPoint状态栏上书写

[英]Writing on MapPoint status bar

I'm creating a MapPoint add-in with Visual Studio 2010. I would like it to write some log messages on MapPoint status bar, to make the user know what it is doing. 我正在用Visual Studio 2010创建一个MapPoint加载项。我希望它在MapPoint状态栏上写一些日志消息,以使用户知道它在做什么。 Is it possible? 可能吗? In the reference status bar it's not even mentioned. 参考状态栏中甚至没有提及。 Thanks! 谢谢!

The documentation is pretty complete. 该文档非常完整。 The reason it is not covered, is because the status bar is not exposed by the API. 之所以没有覆盖它,是因为API没有公开状态栏。

The only way to do it, is to try and trap Windows messages, and directly manipulate the Status Bar control. 唯一的方法是尝试捕获Windows消息,并直接操纵状态栏控件。 This is definitely frowned upon from a security perspective, and "prohibited" by Vista and Win7. 从安全角度来看,这绝对是令人不满意的,而Vista和Win7则“禁止”这样做。 It is also undocumented, and could easily be broken by new releases of MapPoint. 它也没有文档记录,很容易被新版本的MapPoint破坏。

Toolbar accessibility is similar, and an often requested feature. 工具栏的可访问性与之相似,并且是经常需要使用的功能。 You can switch toolbars on/off, but you cannot add your own buttons. 您可以打开/关闭工具栏,但不能添加自己的按钮。

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

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