Show / Hide Table of Contents

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
loWord  (int)
hiWord  (int)
Returns
nint

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
loWord  (uint)
hiWord  (uint)
Returns
nint

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)
Returns
nint