What does the Result property of a windows message mean and when and how to use it?

前端 未结 3 978
悲哀的现实
悲哀的现实 2021-01-15 21:18

Result property meaning:

Specifies the value that is returned to window in response to handling the message

But <

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-15 21:52

    I depends on the message. According to the API reference it is bound to the specific message.

    http://msdn.microsoft.com/en-us/library/windows/desktop/ms644950%28v=vs.85%29.aspx

    E.g.:

    Return value

    An application returns zero if it processes this message.

    http://msdn.microsoft.com/en-us/library/windows/desktop/dd145213%28v=vs.85%29.aspx

    It can be used as a flag, indicating that the message doesn't need further attendance.

    If your application handles, i.e. processes the message, a result of 0 will do.

提交回复
热议问题