是否有一种惯用的 .net 方式来实现“培训卡帮助”?
我们有一个 VB6 应用程序,它实现了来自 HTML 帮助文件的 WM_TCARD 消息的处理程序。 它在应用程序内导航并打开相关屏幕等。
如何在 WinForms 应用程序中执行此操作?
我能立即看到的唯一方法是处理窗口过程并处理 WM_TCARD 消息,其方式与我们对 VB6 应用程序所做的完全相同。
有没有更 .net 的方式来做到这一点?
We have a VB6 app that has implemented a handler for WM_TCARD messages from an HTML Help file.
It navigates within the application and opens the relevant screens etc.
How does one do this in a WinForms app?
The only way I can immediately see is to handle the window procedure and process the WM_TCARD message in exactly the same way we were doing for the VB6 app.
Is there a more .net way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须自己处理这些消息。但是,创建一个为您执行此操作的类非常容易。例如:
然后,在您要订阅的地方(可能在您的表单中的某个地方)使用
并在表单的类定义中定义
hc
。就像这样,某个地方有处理功能:
显然你需要自己做剩下的事情。但这应该可以帮助您开始。
You'll have to handle the messages yourself. However, it's pretty easy to make a class which does this for you. E.g.:
Then, in the place where you want to subscribe (probably in your form somewhere) use
And have
hc
defined in the class definition of the form. Like soAnd somewhere have the handling function:
Obviously you will need to do the rest yourself. But that should get you started.