如何使用多个动态列表视图调试WndProc函数? [英] How to debug a WndProc function with multiple dynamic listviews ?

查看:54
本文介绍了如何使用多个动态列表视图调试WndProc函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

表单有一个listView将文本添加到listView的图标如果表单有多个控件,如按钮,标签,文本框,tabcontrol,并且有很多动态列表视图,WndProc不运行,那么效果很好。我监视函数WndProc m.Msg变量
是一个数字,我不知道这些数字是什么意思以及如何与控件相关?知道这些数字要安装什么软件?我想知道你如何调试WndProc函数?什么知识?等。

The form have a listView adding text to icon of a listView works well if the form has multiple controls, such as button, label, textbox, tabcontrol, and there are many dynamic listviews that WndProc does not run. I monitor the function WndProc m.Msg variable is a number, I do not know what these numbers mean and how related to the controls ? What software to install to know these numbers ? I want to know how you debug WndProc function ? What knowledge ? etc ..

推荐答案

嗨  lamtriendong,

感谢您在此发布。

>>表单有一个listView,如果表单有多个控件,例如按钮,标签,文本框,tabcontrol等,那么将listView添加到listView图标的效果很好WndProc不运行的列表视图。我监视函数WndProc
m.Msg变量是一个数字,我不知道这些数字是什么意思以及如何与控件相关?知道这些数字要安装什么软件?我想知道你如何调试WndProc函数?什么知识?等..

WndProc 控制方法完全对应于Windows
WindowProc
功能。通过
过滤后,所有消息都会发送到 WndProc 方法
PreProcessMessage
方法。

The WndProc method of control corresponds exactly to the Windows WindowProc function. All messages are sent to the WndProc method after getting filtered through the PreProcessMessage method.

  m.Msg变量是Windows消息的ID。消息名称和值都在Winuser.h中定义。

The m.Msg variable is the ID of the Windows messages. The message name and value are all defined in Winuser.h.

这是一个关于您可以参考的消息和消息队列的文档。

Here is a document about messages and message queues you could refer to.

https://msdn.microsoft.com/en -us / library / windows / desktop / ms644927(v = vs.85).aspx#system_defined

希望这可以帮助你。

最好的问候,

Baron Bi

Baron Bi


这篇关于如何使用多个动态列表视图调试WndProc函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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