WM_APP + n时n应该是什么? [英] What should be n when WM_APP+n?

查看:113
本文介绍了WM_APP + n时n应该是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

对于所有以前看过我的问题(仅是关于钩子的2个问题)的人,请不要理会它们.我已经解决了.

我今天的问题是使用WM_APP + n时应为n?我得到了代码 #define....(WM_APP+1024) 作为线索,它的作用使我可以在编辑框上显示数据.因为当我更改值时,编辑框上没有显示任何数据-这只是我的观察.现在,我希望一些数据显示在静态控件上……那么n应该是什么?或如何确定 n 应该是什么?

Hello,

To all who have viewed my questions before (which are just 2 questions about hooking) kindly disregard them. I already had solved them.

My question for today is what should be n when using WM_APP+n? I was given a code #define....(WM_APP+1024) as a clue, and its effect enables me to display data on an editbox. Because when I change the value, there is no data that appears on the editbox - It''s just my observation. Now, I want some data to be displayed on a static control...What should be n then? Or how do I determine what should be n?

推荐答案

WM_APP + n是消息的编号( MSDN [


因此,如果您的应用程序确实需要私人消息,则可以安全地使用它.
请注意,通常不需要私人消息即可在编辑框中显示数据或在静态控件中显示文本.
WM_APP + n is the number of a message that is (MSDN[^]):

"available for application to use as private messages. Message in this range do not conflict with system messages"


Hence, if your application really needs private messages, you may safely use it.
Please note private messages are usually NOT needed for displaying data in edit boxes or text in static controls.


这篇关于WM_APP + n时n应该是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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