Method Math2.MakeLparam(+ 2 overloads)
Overload
Creates uint by placing (ushort)loWord
in bits 1-16 and (ushort)hiWord
in bits 17-32. Returns it as nint, ready to use with Windows message API as lParam or wParam or return value.
Like C macro MAKELONG, MAKEWPARAM, MAKELPARAM, MAKELRESULT.
public static nint MakeLparam(int loWord, int hiWord)
Parameters
Returns
Overload(next)
Creates uint by placing (ushort)loWord
in bits 1-16 and (ushort)hiWord
in bits 17-32. Returns it as nint, ready to use with Windows message API as lParam or wParam or return value.
Like C macro MAKELONG, MAKEWPARAM, MAKELPARAM, MAKELRESULT.
public static nint MakeLparam(uint loWord, uint hiWord)
Parameters
Returns
Overload(top)
Creates uint by placing (ushort)p.x
in bits 1-16 and (ushort)p.y
in bits 17-32. Returns it as nint, ready to use with Windows message API as lParam or wParam or return value.
Like C macro MAKELONG, MAKEWPARAM, MAKELPARAM, MAKELRESULT.
public static nint MakeLparam(POINT p)
Parameters
p (POINT) |