WPARAM and LPARAM parameters

前端 未结 5 1334
野趣味
野趣味 2020-12-29 07:49

When passing a value to a function that takes both a WPARAM and a LPARAM parameter, does it matter on which of them I pass it? Someone told me that if I use Windows x64 I sh

5条回答
  •  星月不相逢
    2020-12-29 08:00

    Yes, the order matters. WPARAM sent/posted in one side winds up WPARAM on the other end; likewise for LPARAM.

    If you have your own custom messages you can use WPARAM and LPARAM for anything you want. (There may be some common conventions though.)

提交回复
热议问题